squidpeek

  186 downloads
1.5.1 MIT/X Consortium License    
  not rated
Per-URL Squid logfile statistics and sparklines

description

download

specifications

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
READ MORE   
Last updated on November 30th, 2011

0 User reviews so far.

SUBMIT