Every day at midnight, the achievement processes with logrotate begin, which I have set up.
But I'm faced with the problem that once the rotation is finished, it has the name of the current day and I'm interested in the name being the previous day.
My version of logrotate is: 3.8.6
My configuration file logrotate.conf contains:
/mylogs/thelogs { missingok daily copytruncate create 0644 root utmp rotate 6 dateyesterday } I've tried changing 'dataext' to 'dateyesterday' but it's still doing exactly the same thing.
Thanks for the help.
man logrotate, I think you need to give bothdateextanddateyesterday, otherwise you probably get .1, .2 etc. again./mylogs/thelogs { missingok daily copytruncate create 0644 root utmp rotate 6 dateext dateyesterday }I'll try it... thank you.