SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

squidsites - a Squid access log analyzer

  1. Introduction

squidsites is a tool that parses Squid access log file (usually /usr/local/squid/logs/access.log) and generates a report of the most visited sites, sorting by hit count or by bytes count.

2. Installing squidsites

squidsites comes with a compressed tar file. To expand, type

gunzip -c squidsites-x.x.tar.gz | tar tvf -

where x.x is the version of squidsites you have. Cd into the src/ subdirectory.
Make with:

make

Now you should have an executable file called squidsites.

3. Using squidsites

squidsites is extremely simple to use.
Example:

squidsites < /usr/local/squid/logs/access.log

will generate a report on console, sorting sites by hit count.

squidsites -b < /usr/local/squid/logs/access.log

will generate a report on console, sorting sites by bytes count.

squidsites -b < /usr/local/squid/logs/access.log > report.txt

will generate a report on file report.txt, sorting sites by bytes count. You can also use squidsites as a filter:

cat /usr/local/squid/logs/access.log | squidsites > report.txt

4. Related tools

squidclients, by Nico Tranquilli (http://www.cineca.it/~nico/squidclients.html)


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.