[rsyslog] facility filter
hce
webmail.hce at gmail.com
Tue Aug 11 06:57:12 CEST 2009
Hi,
I have two C++ programs, one uses LOCAL0 and the other uses LOCAL1. At
the moment, I tested it on fedora 9, but it will finally move to a
CentOS 5 to remotely log messages to a log server on fedora 9. I
configured following to the rsyslog.conf in Fedora 9:
*.info;mail.none;authpriv.none;cron.none;local0.none;local1.none
/var/log/messages
local0.* /tmp/local0.log
local1.* /tmp/local1.log
Now the program writes to LOCAL0 worked fine, all messages went to the
local0.log file. But the program writes to LOCAL1 did not work, the
messages still went to /var/log/messages, no messages in local1.log.
I then made following tests which even more confusing me:
logger -p 1 local1.info "testing", message went to /var/log/messages
logger -p local1.info "testing", message went to local1.log
logger -p 1 local0.info "testing", message went to /var/log/messages
logger -p local0.info "testing", message went to local0.log
Seems messages went to different log depending on different
priorities? What I am missing here?
Thank you.
Kind Regards,
Jupiter
More information about the rsyslog
mailing list