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

Managed services in the spotlight

Our system administrators have lifted a couple of cargo ships filled with containers of work. (yes, that pun was on...

Read more

What information is necessary to register a .be domain name?

Registering a .be domain name is easy. Any person or legal entity can register a .be domain name. Kinamo will...

Read more

Apache - Disable SSL 2.0, SSL 3.0 and opt fore a modern safe SSL config

This article shows you how to disable the SSL 2.0, SSL 3.0 and older TLS version protocols on your Apache...

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

All languages: