[syslog-ng]Cisco Log

amy wong syslog-ng@lists.balabit.hu
Tue, 29 Jun 2004 15:44:48 +0100


---------- Forwarded message ----------
From: amy wong <amywsp@gmail.com>
Date: Tue, 29 Jun 2004 17:03:14 +0800
Subject: Cisco Log
To: bazsi@balabit.hu


Hi,
I'm new in syslog-ng. Currently install syslog-ng-1.4.7. I have got
the cisco router monitor, and log can be seen on /var/log/messages but
not /var/log/cisco.log. My questions are do the cisco.log file will be
created automatically? and would you show me the right way in setting
up?

source remote {tcp(); udp();};

destination d_cisco { file("/var/log/cisco.log); };

filter f_cisco_info { level(info); };
filter f_cisco_notice { level(notice); };
filter f_cisco_warn { level(warn); };
filter f_cisco_crit { level(crit); };
filter f_cisco_err { level(err); };

log { source(remote); filter(f_cisco_info); destination(d_cisco); };
log { source(remote); filter(f_cisco_notice); destination(d_cisco); };
log { source(remote); filter(f_cisco_warn); destination(d_cisco); };
log { source(remote); filter(f_cisco_crit); destination(d_cisco); };
log { source(remote); filter(f_cisco_err); destination(d_cisco); };

destination hosts {
file("/var/log/HOSTS/$HOSTS/$YEAR/$MONTH/$DAY/$FACILITY" owner(root)
group(root) perm(0600) dir_perm(0700) create_dirs(yes)); };

log { source(remote); destination(hosts); };

thanks
amy