<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Quick thought. Look at filters on the receiving end. Might be easier.</div><div>Jim</div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Sent from my Verizon Wireless 4G LTE smartphone</div></div><div></div><br><br>-------- Original message --------<br>From: wiskbroom@hotmail.com <br>Date:09/05/2014 5:42 PM (GMT-05:00) <br>To: syslog-ng@lists.balabit.hu <br>Cc: <br>Subject: [syslog-ng] Individual Logs Files to each Forward to Different        server/port? <br><br><div dir="ltr">Greetings!<br><br>Is is possible to configure a syslog-ng client to forward logs to a syslog-ng server based on file?<br><br>I am thinking of the following as an example:<br><br>destination named-LOGS {<br>
udp(ip(192.168.1.100) port(555));<br>
};<br>
source named {<br>
file("/var/log/named/bind.log" log_prefix("BIND-LOGS"));<br>
};<br>
log {<br>
source(named);<br>
destination(named-LOGS);<br>
};<br><br><br>destination dhcpd-LOGS {<br>
udp(ip(192.168.1.100) port(556));<br>
};<br>
source dhcpd {<br>
file("/var/log/dhcpd/dhcp.log" log_prefix("DHCPD-LOGS"));<br>
};<br>
log {<br>
source(dhcpd);<br>
destination(dhcpd-LOGS);<br>
};<br><br><br>In this example, I am sending each to the same destination IP address, although that is configurable, but each log file to a different port, and with a different log_prefix as well.<br><br><br>Does this OK,or is their a simpler way?<br><br><br>Many thanks,<br><br><br>.vp<br><br> Vadim Anatoly Pushkin
<br>-- The Ukranian Stallion --<br><br>                                            </div>
</body></html>