Pihole.log stopped rotating

The pihole.log file stopped rotating in early Juy. Don't know why. Noticed that the current file is over 320 megs. I created a file in /etc/logrotate.d/ to try and solve this.

Thought someone here might find that amusing.

What versions of Pi-hole are you running? We had a problem for a few days prior to fixing the bug.

Please generate a debug log, upload it when prompted and post the token URL here.

I'm pretty aggressive with upgrades and had just done a pihole -up. So, it's Pi-hole v5.11.4, FTL v5.16.1, and Web Interface v5.13.

https://tricorder.pi-hole.net/cy0Wza3P/

Never generated a debug log before. Pretty slick.

Your debug log looks normal, with the exception that the FTL log is not displaying.

What is the output of the following:

ls -lha /var/log/pihole

Edit - also, please post the contents of your new file in /etc/logrotate.d/.

/var/log/pihole
total 328M
drwxr-xr-x 2 pihole pihole 4.0K Aug 15 00:01 .
drwxr-xr-x 8 root root 4.0K Aug 15 00:00 ..
-rw-r--r-- 1 pihole pihole 7.4K Aug 15 09:13 FTL.log
-rw-r--r-- 1 pihole pihole 531K Aug 15 00:01 FTL.log.1
-rw-r--r-- 1 pihole pihole 337 Jul 7 00:00 FTL.log.2.gz
-rw-r--r-- 1 pihole pihole 288 Jul 6 00:00 FTL.log.3.gz
-rw-r----- 1 root pihole 32K Aug 14 22:27 pihole_debug.log
-rw-r----- 1 pihole pihole 2.2M Aug 15 09:16 pihole.log
-rw-r----- 1 pihole pihole 322M Aug 15 00:01 pihole.log.1
-rw-r--r-- 1 pihole pihole 522K Jul 8 00:00 pihole.log.2.gz
-rw-r--r-- 1 pihole pihole 783K Jul 7 00:00 pihole.log.3.gz
-rw-r--r-- 1 pihole pihole 639K Jul 6 00:00 pihole.log.4.gz
-rw-r--r-- 1 pihole pihole 905K Jul 5 00:00 pihole.log.5.gz
-rw-r--r-- 1 root root 1.3K Aug 14 03:20 pihole_updateGravity.log

/etc/logrotate.d/
total 56K
drwxr-xr-x 2 root root 4.0K Aug 14 20:47 .
drwxr-xr-x 98 root root 4.0K Aug 14 19:08 ..
-rw-r--r-- 1 root root 120 Apr 18 2019 alternatives
-rw-r--r-- 1 root root 173 Apr 19 2021 apt
-rw-r--r-- 1 root root 130 Aug 28 2018 btmp
-rw-r--r-- 1 root root 112 Apr 18 2019 dpkg
-rw-r--r-- 1 root root 108 Sep 22 2021 envmon
-rw-r--r-- 1 root root 146 May 1 2021 exim4-base
-rw-r--r-- 1 root root 126 May 1 2021 exim4-paniclog
-rw-r--r-- 1 root root 419 Sep 27 2019 lighttpd
-rw-r--r-- 1 root root 115 Aug 14 20:47 pihole
-rw-r--r-- 1 root root 501 Feb 26 2019 rsyslog
-rw-r--r-- 1 root root 178 Aug 15 2017 ufw
-rw-r--r-- 1 root root 145 Feb 19 2018 wtmp

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.