How To rotate syslog daily?

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?

8

2 Answers

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

0

On my system, I found /etc/logrotate.d/rsyslog.disabled instead of /etc/logrotate.d/rsyslog. After renaming it to /etc/logrotate.d/rsyslog, things are working fine.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like