Question
Where are the CRON logs located?
Answer
The CRON logs are located in the /var/log/
directory and are named cron
. The CRON logs rotate, so they could also be found having a date at the end.
[root@server ~]cPs# ls -lah /var/log | grep cron
-rw------- 1 root root 592K Jun 9 00:04 cron
-rw------- 1 root root 1.3M May 16 03:19 cron-20210516
-rw------- 1 root root 1.3M May 23 03:47 cron-20210523
-rw------- 1 root root 1.4M May 30 03:40 cron-20210530
-rw------- 1 root root 1.5M Jun 6 03:16 cron-20210606
You can also grep the systemd journal for CRON entries.
[root@server ~]cPs# journalctl --since yesterday --no-pager | grep cron
Aug 02 12:00:02 first.cptest.local CROND[2432773]: (mailman) CMD (/usr/local/cpanel/scripts/restartsrv_mailman --status &> /dev/null && /usr/local/cpanel/3rdparty/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/senddigests)
Aug 02 12:01:01 first.cptest.local CROND[2432901]: (root) CMD (run-parts /etc/cron.hourly)
Aug 02 12:01:01 first.cptest.local CROND[2432902]: (root) CMD (/usr/sbin/imunify-notifier -update-cron)
Aug 02 12:01:01 first.cptest.local run-parts[2432905]: (/etc/cron.hourly) starting 0anacron
Aug 02 12:01:01 first.cptest.local run-parts[2432915]: (/etc/cron.hourly) finished 0anacron
Comments
0 comments
Article is closed for comments.