Sample configs for apache log rotation
"/var/log/httpd/access.log" /var/log/httpd/error.log {
rotate 5
mail www@my.org
size=100k
sharedscripts
postrotate
/sbin/killall -HUP httpd
endscript
}
Another example
/var/log/vhosts/*_log {
weekly
rotate 5
compress
nodelaycompress
nocopytruncate
ifempty
missingok
sharedscripts
postrotate
/usr/local/sbin/apachectl -k restart
endscript
}