Logroate is not compressing apache logs
Hey guys,
I am having trouble with huge apache access_logs so I figured I use logroate with the compress option to keep them small.
I am rotating the logs daily and that is working good but the logs are not compressed.
This is my /etc/logrotate.d/apache2 config file.
/var/log/apache2/access_log {
compress
dateext
maxage 365
rotate 10
size=+4096k
notifempty
missingok
create 644 root root
postrotate
/etc/init.d/apache2 reload
endscript
}
Any ideas?
THX
Suinatsa
|