How to activate cron.log on Debian

Category: Cloud servers

Cron Debian Linux Logging setup

A default Debian installation will log all messages from the cron daemon in the syslog log file ( it can be found in /var/log/syslog ).

Logging crontab entries to cron.log on Debian

The location of the cron log entries can be changed. This means you will have to edit the /etc/rsyslog.conf file.
vi /etc/rsyslog.conf

In the file, you will find the following line:

#cron.* -/var/log/cron

Uncomment the line (remove the #) and save the rsyslog..conf file.
Next you will have to restart the rsyslog daemon:

service rsyslog restart

After restarting the rsyslog daemon, crontab log entries will appear in the /var/log/cron.log file.


Related articles

Apache - Install SSL Certificate

This article assumes you've received your certificate from the Certificate Authority, and that you wish to install it on your...

Read more

How can I move (transfer) a .com, .net or .org domain name?

If you would like to move (transfer) a domain name (typically com, .net or .org) from your current registrar to...

Read more

How can I publish my website via FTP?

If you use shared web hosting at Kinamo, either Linux hosting or Windows hosting, you can use an FTP program...

Read more

Need extra help?

Were not all your questions answered?
Don't worry, we will be happy to help you via a support request!

Kinamo

Select your language