Operating System - HP-UX
1834597 Members
3940 Online
110069 Solutions
New Discussion

Re: 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