Flushing logs sometimes doesn’t work


Please follow the below template, it will help us to help you!

Expected Behaviour:

Clicking “flush logs” on webpage admin works

Actual Behaviour:

Clicking “flush logs” on webpage admin sometimes doesn’t work.

Debug Token:

Not applicable. Behaviour is not consistent.



What specifically are you seeing after you flush logs and it doesn’t appear to work correctly? Which log(s) are you reviewing after you flush? Can you provide some examples if you have them available? Thanks.



The debug token is applicable, otherwise we have very little information to go off of. Please run pihole -d to make one.




On Admin Console > Settings clicking “Flush logs” whirrs away, then reverts to the default page.
Then going to “Dashboard” reveals that there are still the same “x” number of queries in the green box as before.
I might click “Flush logs” or “Disable query logging and flush logs” 3 or 4 times before I get an empty dashboard, and also occasionally SSHing to the Pihole to do “pihole -f”.

I have also found that since the new update end of last year/this year, I occasionally lose the gravity list. Dashboard will return a number that is only the same as the blacklist.
Updating gravity restores the “millions” of sites I usually have.

Thanks in advance.

Debug 9mg483mx3b



This problem may be related to the large number of domains on your block lists - 4,597,584 domains is challenging for most installs.

What are the outputs of these commands:

free -h

ls -l -h /etc/pihole/pihole-FTL.db

echo ">cacheinfo" | nc 4711



I’ve reinstalled PiHole on a smaller distro (Debian Stretch (arm64) by meveric) and reduced the number of block lists to 2, and everything seems OK for now.
I will return to this post if I have any further problems.


closed #7

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