I inherited a system using both logcheck and logrotate. The issue I'm having is that logrotate is sending a nasty e-mail saying something along the lines of:
*** WARNING ***: Log file (X) is smaller than last time checked!
Whenever logrotate rotates a watched file. It seems these tools would be designed to play nicely together, so I'm curious how to make it happen.
This seems simple and I apologize if I am asking a dumb question that is in the help files somewhere.
Ubuntu 18.04, logcheck 1.3.17, logrotate 3.11.0 - Copyright (C) 1995-2001 Red Hat, Inc.
Additional question, since 'copytruncate' is the method being used to manage the file rotation:
The service having its logs rotated is a Django / Apache application. The service itself (and file) can't really be stopped for the rotation process, because it's a webserver that requires uptime. Can you point me in the right direction for getting started on rotating these files cleanly? This process has had logrotate and logcheck running together quite cleanly, but we recently upgraded to Python 3.1 and that may have caused the underlying issue.
Second addendum: This issue may have been caused by developers getting irritated at some conflicting filesize limits (Django limiting logs to 4M and logrotate rotating at 5M) and truncating the logs themselves. Knowing that logrotate + logcheck has a strong proven track record was extremely helpful.