My Cron job is not running and i want to see what's problem in the syslog.
But that log is only showing current date only ,
Is there any way to keep logs for the last 10 days?
syslogUbuntu
My Cron job is not running and i want to see what's problem in the syslog.
But that log is only showing current date only ,
Is there any way to keep logs for the last 10 days?
Best Answer
The logs are most likely being rotated by the logrotate process. Look in /etc/logrotate.conf. You should see something like this:
Change that to:
You could also do something like this to keep 4 weeks of logs: