Hi Guys,
Need some help with the logrotate for one of our servers. I had setup a logrotation so that all files that go under old/ folder should be removed after one week. The log files are rotated daily from the main folder to old/ folder. (everything on one server)
Below is the sample I am providing though it seems even after more than 7 days, older log files which get compresses aren't getting removed.
Sample -
/logs/test/sample/old/* {
missingok
weekly
rotate 1
compress
notifempty
dateext
postrotate
endscript
}
I haven't given the daily rotation though that seems to be working fine. Do let me know if you need more information and thanks once gain for the fantastic support.