Friday, April 17, 2020

Crontab -e log history on Amazon Linux 2

This is located here:

/var/log/cron

Example of usage:

tail -500f /var/log/cron

You shall find your scripts from crontab -e being run:

Apr 17 22:43:01 ip-172-31-39-55 CROND[1407]: (root) CMD (sh /home/dtech/monitoring/check-daily-requests.sh)
Apr 17 22:43:01 ip-172-31-39-55 CROND[1408]: (root) CMD (sh /home/dtech/monitoring/check-cpu)

No comments:

Post a Comment