The Squid Analysis Report Generator (SARG) enables you to see your Squid users internet usage. SARG provides many informations about Squid users activities like times, bytes, sites, etc. This article will show you how to use SARG through Webmin, a web-based interface for administering Linux.

Installing Webmin and SARG

RPM Forge1. Add the RPMforge repository into Yum. We will be getting the SARG RPM package for Red Hat/CentOS from RPMforge.
Yum install SARG2. From a terminal window, type in the command below to install SARG.
yum install sarg
Webmin3. Install Webmin. After installing, login to Webmin. Webmin will enable us to control who gets access to the Squid reports. We will also have an easy to use web-based interface for configuring the report format.
SARG configure4. Click Un-used modules in the side bar. Next click Squid Report Generator. We need to configure SARG so click module configuration.
SARG configure5. Change the value of Full path to SARG configuration file to /etc/sarg/sarg.conf then click the Save.
NoteNext time you need to use the Squid Report Generator, look for it under Servers instead of Un-used modules.

Generating a report

SARG1. To generate a report, click the Generate Report Now button.
SARG2. Next, click View completed report.
SARG3. Click the latest generated report.
SARG4. Review the generated report.

Visit the forum to ask for help or to give a comment.

***
Posted on 10/25/2008 and last updated on 11/6/2009
Filed under Squid Proxy Server