Pages

Friday 6 July 2012

SARG

SARG

SARG – Squid Analysis Report Generator Configuration is a tool that allow you to view “where” your users are going to on the Internet. SARG provides many information about Squid users activities like, times, bytes, sites, etc…

Download latest version of SARG from here. 
# wget http://downloads.sourceforge.net/project/sarg/sarg/sarg-2.3.1/sarg-2.3.1.tar.gz?r=http%3A%2F%2Fsarg.sourceforge.net%2Fsarg.php&ts=1291380140&use_mirror=biznetnetworks

You need to update sarg.conf for your proxy logs details. 
# vim /usr/local/sarg/sarg.conf

You can generate sarg report just by running command sarg on shell. Once successfully completion of command you will be able to view squid reports using your web browser.

Now open http://192.168.100.101/squid-reports/ (192.168.100.101 is squid proxy server) in your browser.

You can write bash script to generate reports & trunk old access.log to avoid regenerating old data. And to get data date-wise.

No comments:

Post a Comment

Twitter Bird Gadget