squidpeek iconsquidpeek 1.5.1

Per-URL Squid logfile statistics and sparklines
squidpeek is a quick and dirty script for getting cool per-URL statistics and sparklines out of your Squid access logs.

Because it's per-URL, it's most appropriate for use with gateways (aka "reverse proxies").

For a sample of its output, see http://mnot.github.com/squidpeek/.


The easy way to install is with pip;

pip install squidpeek

Obviously, you also need some Squid logs; see http://squid-cache.org/. Other programs that generate Squid logs (e.g., Traffic Server) may or may not work, depending on how faithfully they follow the format's semantics.

Finally, you'll need a browser that can handle data: URLs. Note that less-than-recent versions of IE can't do this.

Using Squidpeek

The command-line interface is like this:

% squidpeek.py [-q] [-n num] logfile
 -q use the query string as part of the URI
 -n [num] show the top num URLs (default: 100)

Typically, you'd use squidpeek in a cron job, like this:

# run once an hour; assumes logs are rotated right beforehand
2 * * * * root squidpeek /var/log/squid/access_log

last updated on:
November 30th, 2011, 23:56 GMT
developed by:
Mark Nottingham
license type:
MIT/X Consortium License 
ROOT \ Internet \ HTTP (WWW)


In a hurry? Add it to your Download Basket!

user rating



Add your review!