Squid Analysis Report Generator (SARG) adalah proxy squid log alat analisis untuk Linux. SARG menyediakan analisis web berbasis logfile dan membagi lalu lintas berdasarkan alamat IP. Lalu lintas kemudian dikategorikan oleh situs web yang dikunjungi, volume lalu lintas, dan statistik lain yang bermanfaat. Ini memungkinkan Anda untuk melihat penggunaan squid Anda pengguna internet. SARG menyediakan banyak statistik dan informasi tentang kegiatan Squid pengguna seperti kali, byte, situs, dll

sumber : http://wajanbolikmurah.wordpress.com/2012/02/21/cara-install-sarg-di-ubuntu/


Installasi

#apt-get install sarg

Konfigurasi

#nano /etc/sarg/sarg.conf

cari baris sperti ini, ubah seperti yg berwarna merah

# TAG:  access_log file
#       Where is the access.log file
#       sarg -l file
#
access_log /var/log/squid/access.log


# TAG:  output_dir
#       The reports will be saved in that directory
#       sarg -o dir
#
output_dir /var/www/squid-reports
output_dir /var/lib/sarg



# TAG:  date_format
#       Date format in reports: e (European=dd/mm/yy), u (American=mm/dd/yy), w$
#
date_format e


# TAG: overwrite_report yes|no
#      yes - if report date already exist then will be overwrited.
#       no - if report date already exist then will be renamed to filename.n, f$
#
overwrite_report yes



#      of usernames from Active Didectory
#
usertab /etc/hosts



# TAG: graphs yes|no
#       Use graphics where is possible.
#           graph_days_bytes_bar_color blue|green|yellow|orange|brown|red
#
graphs yes
graph_days_bytes_bar_color orange



save. lalu edit file

#nano /etc/sarg/sarg-reports.conf


        SARG=/usr/bin/sarg
     CONFIG=/etc/sarg/sarg.conf
    HTMLOUT=/var/www/squid-reports
  PAGETITLE="Access Reports on $(hostname)"
    LOGOIMG=/sarg/images/sarg.png
   LOGOLINK="http://$(hostname)/"
      DAILY=Daily
     WEEKLY=Weekly
    MONTHLY=Monthly
EXCLUDELOG1="SARG: No records found"
EXCLUDELOG2="SARG: End"






lalu buat direktori di www

#mkdir /var/www/sarg-reports

#sarg reports today

#sarg reports daily

#sarg report weekly

#sarg reports monthly

lalu...

#crontab -e


# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
* */5 * * * /usr/sbin/sarg-reports today
#


URL : ip anda/squid-reports

GAMBAR :




sumber : http://lukmanposting.blogspot.com/2014/09/sarg-squid-analysis-report-generator.html



BLC-TELKOM KPLI KLATEN
Next
This is the most recent post.
Previous
Posting Lama

1 komentar:

 
Top