![]() |
Cron syslog issue
I have written a custom cron. This cron executes a rake task every 5 minutes. I also log the trace of this execution in a file locally on my server. The whole process seems to execute seamlessly every 5 minutes, but then it seems to log it in /var/log/syslog. I investigated on the syslog and found that system's critical errors, and other cron issues are logged in syslog. Has anybody faced this kind of an issue ?
|
Everything is logged in syslog
it's defined in the config file /etc/rsyslog.conf Code:
*.*;auth,authpriv.none -/var/log/syslogCode:
#cron.* /var/log/cron.log |
Syslog.conf
But in my etc/syslog.conf, Everything is referenced as /mnt/log/syslog and not /var/log/syslog .
Is this the same for you also.. I Have logged in as root. |
Ah well, that depends on what the admin of the server set-up.
default it's /var/log/* .. but maybe if you run in a openvz container, vps, or smth .. those folders could be different (weird, but ok) .. If all your log files are in /mnt/log/* then set a line: cron.* -/mnt/log/cron.log in your rsyslog.conf and restart rsyslogd |
syslog issue
Thanks for the quick reply..
But, I have these logs stored both in /var/log/syslog and /mnt/log/syslog is this possible. My configuration seems to store only in /mnt/log/syslog |
it might help if you post the content of rsyslog.conf :)
|
/etc/rsyslog.conf
Code:
#################/etc/rsyslog.d/50-default.conf Code:
auth,authpriv.* /mnt/log/auth.log |
Code:
sed -i 's/#cron\./cron\./' /etc/rsyslog.conf |
I guess that /mnt/log and/or /var/log is a symlink to one another
show me: Code:
ls -al /var |
| All times are GMT +2. The time now is 09:26. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.