Download logs from specified IP



When logs is activated, it would be neat if you could download logs from a specified IP, so that you can share that with the one owning that IP.

I have users using my DNS that wish to see their log, so that can see what are spying on them and being blocked, but the only way I can show them that ATM. is by giving them access to the panel which I don’t want to.


Well, if you just need a list, that would be easy.
Assuming the IP is the one you want to know about:

sed -n ‘/’ /var/log/pihole.log >/path/to/some/file.txt


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