1834447 Members
3123 Online
110067 Solutions
New Discussion

Logrotate configuration.

 
Reshma Malusare
Trusted Contributor

Logrotate configuration.

Hi,

After logrotate 2.5 installation, which configuration file need to be updated if for example i need syslog.log to rotate 14 versions and mail.log to keep 7 versions etc.

Waiting for your favourable reply.

Regards
2 REPLIES 2
Yogeeraj_1
Honored Contributor

Re: Logrotate configuration.

hi,

Please see:
http://www.debian-administration.org/articles/117

Normally, the configuration file is /etc/logrotate.conf and the configuration directory - /etc/logrotate.d

Configuration that you will need:
/var/adm/syslog/syslog.log {
weekly
missingok
rotate 14
...
}


hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Reshma Malusare
Trusted Contributor

Re: Logrotate configuration.

Thankyou