HOWTO vixie-cron notes

From Research
Revision as of 18:35, 8 February 2008 by Gordp (talk | contribs)
Jump to navigation Jump to search

On a hardened gentoo machine, the main /var/log/messages file becomes hugely cluttered with the minute-by-minute cron messages. They are far too verbose :-( Cut down on the clutter by editing and adding the red/bold change:

hostname ~ # emacs -nw /etc/syslog-ng/syslog-ng.conf

filter f_messages { level(info..warn)
        and not facility(auth, authpriv, mail, news, cron); };

Minute-by-minute cron messages are still logged, but only to /var/log/cron.log, not the main /var/log/messages file. Sanity is restored :-)