New logrotate entry help
Can someone with logrotation experience please check my work? I want to add this to /etc/logrotate.d to rotate this access or error log based on a 2GB size and then restart httpd gracefully. Anyone know if the date can be added to the rotated log file from an entry here so it reads access.log.daterotated.gz?
Also can logrotate email an address if there any errors?
Thanks!
/local/stanford.edu/log/*log {
missingok
rotate 52
size=4096M
notifempty
sharedscripts
postrotate
/sbin/service httpd graceful > /dev/null 2>/dev/null || true
endscript
|