Visualize Ads Blocked In Real Time Using Pi-hole And Logstalgia

The only thing better than blocking advertisements is visualizing them in real time.  There are a few different visualization tools like glTail.rb or goaccess, but my personal favorite is Logstalgia, which is the perfect supplement to the ad-blocking Pi-hole.

The Pi-hole will block ads and also generate a log file for each request.  When a request is made, a “pong ball” gets shot out from the left side of the screen and then the “pong paddle” bounces it back.  When it hits the paddle, it shows the path that was requested by the client and lights up in beautiful colors.

How To Set This Up

Just install Pi-hole and then run the command below.  You just need to use ssh to view the log file.  The computer needs to be OpenGL-capable (i.e. you can’t run it directly from the Pi since it is not graphically-powerful enough).

ssh pi@192.168.1.200 "tail -f /var/log/lighttpd/access.log" | logstalgia

You can also optionally use SSH keys for password-less access.

6 Replies to “Visualize Ads Blocked In Real Time Using Pi-hole And Logstalgia”

  1. Hi, i wanted to try this but some commands are incomplete i guess…

    bash: logstalgia: command not found
    Warning: Permanently added ‘192.168.0.19’ (RSA) to the list of known hosts.
    /usr/bin/xauth: file /home/pi/.Xauthority does not exist
    tail: cannot open ‘/var/log/lighttpd/access.log’ for reading: Permission denied
    tail: no files remaining

    sudo curl https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/lighttpd.conf > /etc/lighttpd/lighttpd.conf
    -bash: /etc/lighttpd/lighttpd.conf: Permission denied

    thanks for your help
    rgds

    1. It looks like you need to install logstalgia on your computer. If you are on a Mac, the easiest way is by using Homebrew: brew install logstalgia

      1. Thaks for your quick reply to my dummy question ;-} ,i’m on windows and it seems that : ” tailing remote logs is not currently recommended on the Windows version due to buffering issues.” nevermind i’ll find another way, maybe on a virtual os. thanks again for your wonderful project.

Leave a Reply