Stop Munin messages from /var/log/syslog

loggingmuninsyslog

I am using munin on a system which is adding a log entry in syslog everytime the munin-node cron job executes. It is not an issue but it sometimes makes other errors spotting difficult. There are entries like

Feb 28 07:05:01 li235-57 CRON[2634]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi)

every 5 minutes and I was wondering how can I stop the messages going into syslog. For munin specific errors I anyways have to keep an eye on /var/log/munin/*

Thanks
Sparsh

Best Answer

Depends on syslog. If use rsyslog(Ubuntu/Debian), you can edit /etc/rsyslog.d/50-default.conf:

#
# First some standard log files.  Log by facility.
#
:msg,contains,"/etc/munin/plugins/apt_all update 7200" ~
auth,authpriv.*                 /var/log/auth.log

It's a cron syslog message(not Munin).