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
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.