[root@khan ~]# yum install gcc make wget httpd
[root@khan ~]# wget http://sourceforge.net/projects/sarg/files/sarg/sarg-2.3.1/sarg-2.3.1.tar.gz/download
[root@khan ~]# tar zxvf sarg-2.3.1.tar.gz
[root@khan ~]# cd sarg-2.3.1
[root@khan ~]# ./configure
[root@khan ~]# make
[root@khan ~]# make install
# vim /usr/local/etc/sarg.conf
#### sarg.conf####
access_log /var/log/squid/access.log
date_format e ## since here we use date format DD-MM-YYYY
overwrite_report yes ## because I don't want multiple sarg reports for the same day
output_dir /var/www/html/squid-reports
No comments:
Post a Comment