Watching log files for something

30 August 2007

Found from: techblog:

tail -f /var/log/apache2/access_log | sed "s/rss/Ctrl+vCtrl+[[41;1mrssCtrl+vCtrl+[[0m/g"

This example is looking for people accessing the rss feed so I can see how frequently it gets hit (whilst still seeing what else is going on). With this I spotted that one of the Firefox extensions I was using(piclens) was automatically downloading the detected rss feed with every page access. It’s a nice extension and I can see why it does that, but I don’t want to be accessing rss feeds automatically and potentially multiple times as I use sites.