Ubuntu syslog does not show previous days’s logs

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:

daily

rotate 1

Change that to:

daily

rotate 10

You could also do something like this to keep 4 weeks of logs:

weekly

rotate 4