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

What are the main guarantees of SSL certificates?

SSL certificates are no longer an optional extra but have become an essential part of securing websites in the modern...

Read more

Discover here how we’ve fixed a blocking error when upgrading ESXi 6.5 to 7.0 update 2 through vSphere Lifecycle Manager.

Kinamo maintains multiple VMware vSphere clusters, not only for our own infrastructure, but also for a variety of customers. As...

Read more

Mac Mail: Configuration of the incoming (IMAP) and the outgoing server (SMTP)

Follow the steps below to configure your Kinamo e-mail account for the Mac Mail application for OS X, so you...

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