crontablog.md

August 3, 2016 ยท View on GitHub

How to see logs of crontab in Ubuntu Back

1. setup the logs of crontab

# sudo vim /etc/rsyslog.d/50-default.conf
# remove the '#' before cron.*  /var/log/cron.log

cron.*              /var/log/cron.log

2. restart the server

sudo  service rsyslog  restart

2. see the logs

vim /var/log/cron.log