Logrotate - not removing old files - driving me insane !
I have a problem where logrotate wont remove old rotated files. I've googled and googled and believe i have everything set up correctly ..
# rotate log files weekly
# keep 4 rotated files
# use date as a suffix of the rotated file
# uncomment this if you want your log files compressed
# compression scheme
I would expect /etc/logrotate.d/ora_alert to run daily and remove any rotated files older than 28 days (maxage 28), but I still have rotated files from January 11th (today is 27th April). It does gzip log files every day, but isn't removing any.
I am thinking maybe I have to manually remove any rotated files from before I made the maxage change to the logrotate config file ?
Many thanks in advance