Results 1 to 1 of 1
My syslog.conf looks like:
*.info;mail.none;authpriv.none;cron.none /var/log/messages
I wanted to log my cisco router's logs to this server as well to file /var/log/router. The logs from routers are local7.notice. So I ...
- 04-24-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 7
Question about syslog.conf. How can I exclude local7.notice from /var/log/messages?
My syslog.conf looks like:
*.info;mail.none;authpriv.none;cron.none /var/log/messages
I wanted to log my cisco router's logs to this server as well to file /var/log/router. The logs from routers are local7.notice. So I added this in the syslog.conf:
local7.notice /var/log/router
It worked fine and /var/log/router did write down the logs from routers. However /var/log/message also recorded them... I also tried to change /var/log/messages settings to:
local7.none;*.info;mail.none;authpriv.none;cron.no ne /var/log/messages
!local7.info;mail.none;authpriv.none;cron.none /var/log/messages
But they either still recorded router logs or recorded nothing...
Can somebody please help me with it so the /var/log/messages won't include local7.notice messages but still record others?
Thanks!


Reply With Quote