Cron logging must be implemented to spot intrusions or trace
cron job status. If cron
is not logging to rsyslog
, it
can be implemented by adding the following to the RULES section of
/etc/rsyslog.conf
:
If the legacy syntax is used:
cron.* /var/log/cron
If the modern syntax (RainerScript) is used:
cron.* action(type="omfile" file="/var/log/cron")