Hi if I want to run log rotate on my apache generated files every hour but don't want to save any of them do I need to have any olddir value set?
this is my /etc/logrotate.d/httpd file as it is.
/usr/local/apache/logs/*log{
rotate 0
hourly
compress
olddir /usr/local/apache/logs/old
create 0644 root root
ifempty
postrotate
/usr/bin/killall -HUP httpd
endscript
}
and this is what I'm thinking of trying but the machines are running live so I can't risk it all messing up
/usr/local/apache/logs/*log{
rotate 0
hourly
create 0644 root root
postrotate
/usr/bin/killall -HUP httpd
endscript
}
Would this be OK?
Thanks
Bubble