Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ Where is the cron / crontab log? / Enable Cron Log in Ubuntu 16.04
Added by sonik on 07-07-2017 and keywords: enable, cron, log, var, log, crontab [ Print Article ]

1. modify rsyslog config: open /etc/rsyslog.d/50-default.conf,remove # before cron.*
pico /etc/rsyslog.d/50-default.conf

[quote]
# Default rules for rsyslog.
#
# For more information see rsyslog.conf(5) and /etc/rsyslog.conf

#
# First some standard log files. Log by facility.
#
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
cron.* /var/log/cron.log
#daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
#lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
#user.* -/var/log/user.log

2. chown syslog:admin cron.log
3. restart rsyslog service: sudo service rsyslog restart
sudo service rsyslog restart

4. restart cron service: service cron restart
service cron restart


Now you can check cron log from file cat /var/log/cron.log
[warning]
if you have problems please reboot the server!

@All rights reserved with Copyright Webleit.info 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]