Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to rotate my syslog daily... How do I do this? How to check whether log rotate is working? How to make it run daily? By default, does Ubuntu Server run logrotate daily? Or do I have to set it after installation?

share|improve this question
You can check with ls /etc/cron.daily/ | grep logrotate. – mikewhatever Apr 25 '12 at 5:01
@mikewhatever In the result it says logrotate ... So that means its working right? But how to rotate syslog daily? Is it on by default? If its on... Its not working for me! – THpubs Apr 25 '12 at 5:13
Yes, that means the logrotate job is run daily. Why do you think it's not working? – mikewhatever Apr 25 '12 at 5:42
@mikewhatever The syslog is not rotated! – THpubs Apr 25 '12 at 5:52
Are you saying the syslog in never rotated? That sounds unlikely, can you post some evidence. – mikewhatever Apr 25 '12 at 6:20
up vote 2 down vote accepted

You can change settings in /etc/logrotate.d/rsyslog but for me it's daily by default.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.