squidpeek 1.5.1

Per-URL Squid logfile statistics and sparklines

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Mark Nottingham
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
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/.

Installation

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

requirements

#logfile metrics #logfile statistics #Squid #logfile #metrics #statistics

Add your review!

SUBMIT