Show blocked request from specified IP

Hello,

You can query an IP from the last 24 hours, it would be neat to be able to see longer back.

The GUI offers that. Just go to Long term data > Query Log and choose the timeframe.

If you want to work with the shell:
Pi-hole saves a log for each day. Just cd /var/log and you'll see the logs there.
pihole.log is the current one (of today).
pihole.log.1 is the one from 1 day ago (yesterday).
pihole.log.2.tgz is the compressed (tar gnuzip -> tgz) from 2 days ago (the day before yesterday)
and so on.

1 Like

You can query the database located at /etc/pihole/pihole-FTL.db