{{{ oval_metadata("Rsyslog should be configured to capture cron messages.") }}} {{% if product == "ol8" %}} {{% endif %}}
/etc/rsyslog.conf
^[\s]*cron\.\*[\s]+/var/log/cron\s*(?:#.*)?$
1
/etc/rsyslog.d
^.*$
^[\s]*cron\.\*[\s]+/var/log/cron\s*(?:#.*)?$
1

{{% if product == "ol8" %}} /etc/rsyslog.conf ^[\s]*\*\.\*[\s]+/var/log/messages\s*(?:#.*)?$ 1

/etc/rsyslog.d
^.*$
^[\s]*\*\.\*[\s]+/var/log/messages\s*(?:#.*)?$
1
{{% endif %}}