SARG on CentOS 6

[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

Revisions

Revision Differences

July 17, 2012 @ 13:21:32Current Revision
Content
[root@busy-bee2 ~]# yum install gcc make wget httpd  
[root@busy-bee2 ~]# wget http://sourceforge.net/ projects/sarg/files/sarg/ sarg-2.3.1/sarg- 2.3.1.tar.gz/download  
[root@busy-bee2 ~]# tar zxvf sarg-2.3.1.tar.gz  
[root@busy-bee2 ~]# cd sarg-2.3.1  
[root@busy-bee2 ~]# ./configure  
[root@busy-bee2 ~]# make  
[root@busy-bee2 ~]# make install  
   
[root@khan ~]# yum install gcc make wget httpd [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 ~]# 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 ~]# tar zxvf sarg-2.3.1.tar.gz
[root@khan ~]# cd sarg-2.3.1 [root@khan ~]# cd sarg-2.3.1
[root@khan ~]# ./configure [root@khan ~]# ./configure
[root@khan ~]# make [root@khan ~]# make
[root@khan ~]# make install [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

Note: Spaces may be added to comparison text to allow better line wrapping.

No comments yet.

Leave a Reply