the logwatch ebuild installs a file /etc/cron.daily/logwatch This file should be renamed to /etc/cron.daily/0logwatch When logwatch and a log rotation program like logrotate are both installed, the log rotation may happen before the logwatch scan becasue scripts in cron.* are run in alphabetical order. Chagning the name of the logwatch script to '0logwatch' should resolve this problem by making the logwatch run first on the daily cron rotation. Many other distributions already do this, and Gentoo should follow suit. Reproducible: Always Steps to Reproduce: 1. emerge logwatch 2. emerge logrotate 3. set a daily log rotation cycle for logrotate (e.g. high volume site) 4. watch logwatch return nothing, as your logs have been rotated out Expected Results: Logwatch should run first in the cron rotation, before any log trimming or rotation program has an opportunity to trim/rotate the logs
Lowering priority from P2 to P3, as this is an ebuild change that should be trivial to make.
done in 6.1.2, thanks