Difference between revisions of "Squid log analysis using sarg"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>Squid_proxy_server_configuration|Squid</yambe:breadcrumb> =squid log analysis using sarg= ==Manual installation of sarg== To install sarg manually use foll...") |
m |
||
Line 23: | Line 23: | ||
#:: 15 1 * * * /usr/local/bin/sarg -x | #:: 15 1 * * * /usr/local/bin/sarg -x | ||
#:</pre> | #:</pre> | ||
Steps contributed by Kiran Kollipara. |
Revision as of 05:15, 15 March 2015
<yambe:breadcrumb>Squid_proxy_server_configuration|Squid</yambe:breadcrumb>
squid log analysis using sarg
Manual installation of sarg
To install sarg manually use following steps:
- Install following packages from base, updates repositories:
- yum -y install gcc gd gd-devel make perl-GD wget httpd pcre-devel
- Download latest sarg code from http://sourceforge.net/projects/sarg/files/latest/download
- Extract code and use ./configure; make; make install
- Edit /usr/local/etc/sarg.conf and set following values:
- access_log /var/log/squid/access.log
- output_dir /var/www/html/sarg-reports
- date_format e
- overwrite_report yes
- Generate one time report using sarg -x
- Run sarg over cron using:
- 15 1 * * * /usr/local/bin/sarg -x
Steps contributed by Kiran Kollipara.