[syslog-ng]separate logs from different sources

Hamilton, Andrew Andrew.Hamilton@afccc.af.mil
Mon, 21 Oct 2002 08:55:32 -0400


This should work for you.  Of course you should substitute real names where
I have placed the x's and the filter and destination names should be
meaningful names.  Whether you use TCP is up to you.  You will need to use
UDP because that is how Cisco routers send their logs.

source net { tcp(); udp(); };
filter f_host { host("xxx.xxx.xxx.xxx"); };
destination hostfile { file("/path/to/logs/$HOST"); };
log { source(net); filter(f_host); destination(hostfile); };


-----Original Message-----
From: Olav Langeland [mailto:Olav.Langeland@activeisp.com]
Sent: Monday, October 21, 2002 8:47 AM
To: syslog-ng@lists.balabit.hu
Subject: [syslog-ng]separate logs from different sources

I want to send syslog from 3 different Cisco routers to a FreeBSD box
and have syslog-ng separate them into different output files based on
IP. Would appreciate if anyone could help me with configuration

thanks, olav.

syslog-ng maillist  -  syslog-ng@lists.balabit.hu
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html