Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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! –  EApubs 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! –  EApubs 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

1 Answer 1

up vote 1 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

 
discard

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.