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!