FTL and webserver log files are being rotated daily

For some reason logrotate is rotating the FTL and webserver log files daily, even though it knows:

  • that the correct interval is a week
  • the current date and time
  • the date and time of the last time the log files were rotated
rotating pattern: /var/log/pihole/FTL.log weekly empty log files are not rotated, (3 rotations), old logs are removed
considering log /var/log/pihole/FTL.log
  Now: 2026-10-15 03:34
  Last rotated at 2026-10-15 00:00
  log does not need rotating (log has been rotated at 2026-10-15 00:00, which is less than a week ago)

rotating pattern: /var/log/pihole/webserver.log weekly empty log files are not rotated, (3 rotations), old logs are removed
considering log /var/log/pihole/webserver.log
  Now: 2026-10-15 03:34
  Last rotated at 2026-10-15 00:00
  log does not need rotating (log has been rotated at 2026-10-15 00:00, which is less than a week ago)`

Continuation of Pihole log file is being rotated twice a day, once at midnight, and again between midnight and 1am

I had to change the rotate number from 3 to 27 to ensure that I have the log files cover four weeks, not four days!