How to activate cron.log on Debian

Last updated on 06 Sep 2023, 13:16:50.
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

Kinamo mail server settings (mail server cheat sheet)

The following article provides the basic settings and server names (domain names) for the Kinamo mail infrastructure. These settings allow...

Read more

Create an automatic SPAM filter in the Kinamo Webmail

This article explains how you may create a filter that will automatically place SPAM messages in a special folder, so...

Read more

Order an SSL certificate? What is an SSL certificate?

You need to order an SSL certificate? But what is an SSL certificate? And why is everyone saying that it...

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!

Select your language

All languages: