Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
title/etc/rsyslog.d/nmis.conf
local2.*                /usr/local/nmis8/logs/snmptrap.log

Most likely we will not want these messages to also go to /var/log/messages.  We can edit /etc/rsyslog.conf to prevent this from happening.  An example for facility local2 follows; notice the 'local2.none' statement.

Code Block
title/etc/rsyslog.conf
 *.info;mail.none;authpriv.none;cron.none;local2.none                /var/log/messages