ansible.logrotate icon indicating copy to clipboard operation
ansible.logrotate copied to clipboard

New logrotate.d daily entries are not present in logrotate status file

Open OrangeManLives opened this issue 3 years ago • 0 comments

After configuring daily rotation for an application log file using your module nothing was rotated.

/home/appuser/logs/webserver/.log /home/appuser/logs/misc/.log { copytruncate daily create 0644 appuser appuser dateyesterday rotate 30 missingok }

It's clear that a manual run of logrotate -f /etc/logrotate.d/my-application was required to ensure the required log rotation targets and their last rotate date was present in the logrotate status file

https://serverfault.com/questions/375004/logrotate-not-rotating-the-logs

OrangeManLives avatar Apr 26 '21 07:04 OrangeManLives