Actually, the 'best' (one could claim) solution is a combination of what @DaveCheney suggested and what user7321 did eventually, plus a third action which I would recommend:
- Preventing syslogd from appending cron-related log messages to /var/log/syslog
- Ensuring cron log messages do get logged somewhere (specifically, in /var/log/cron) + ensuring log rotation for the cron log.
- Preventing syslogd from appending cron-related log messages to /var/log/messages as well
In your /etc/syslog.conf
, the combination of these suggestions changes something like the following:
*.*;cron,auth,authpriv.none -/var/log/syslog
auth,authpriv.none;daemon.none;mail,news.none -/var/log/messages
into:
cron.* /var/log/cron.log
*.*;cron,auth,authpriv.none -/var/log/syslog
auth,authpriv.none;cron,daemon.none;mail,news.none -/var/log/messages
And don't forget to force-reload (or restart) both the cron and syslogd services, e.g. using:
/etc/init.d/syslogd force-reload
/etc/init.d/cron force-reload
Note: This works with rsyslogd as well.