How to enable cron log in Ubuntu

I have been having some problems debugging some of my cron scripts and when I went looking for the cron log file it didn’t exists. By default, Ubuntu disables the cron log.

The following steps will enable the cron log to allow for better debugging details.

  1. Edit /etc/syslog.conf and uncomment the line starting with cron.*
  2. Run /etc/init.d/sysklogd restart
  3. Run /etc/init.d/cron restart

Source

One Response to “How to enable cron log in Ubuntu”

  1. Patrick Says:

    Old post, but since I found it still with google I just might add that in Ubuntu 8.04 Hardy (at least, might be the other ones as well) I had to make new empty file called cron.log in /var/log/ as well, since a restart of sysklogd didn’t work without it. Don’t forget to use sudo as well if you’re on a standard user.

Leave a Reply