Download logs from specified IP


#1

Hello,

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.


#2

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

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


#3

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