Instalasi SARG di Slackware 12
Terima kasih untuk mas riqfi yang menyediakan caranya untuk setting SARG
1. Pertama download terlebih dahulu source sarg disini
2. Extract source tersebut
3. lalu configure sarg dengan opsi ini :
./configure --enable-bindir=/usr/bin --enable-sysconfdir=/etc/sarg
4. ketik make
5. ketik make install
6. Edit konfigurasi sarg (ini adalah contoh konfigurasi dari mas riqfi) :
language English
access_log /var/log/squid/access.log
graphs yes
graph_days_bytes_bar_color orange
title "Squid User Access Reports"
output_dir /home/httpd/html/sarg-php
resolve_ip no
topuser_sort_field BYTES reverse
user_sort_field BYTES reverse
lastlog 3
remove_temp_files yes
index yes
index_tree file
overwrite_report yes
topsites_num 200
topsites_sort_order CONNECT D
index_sort_order D
report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date downloads
show_successful_message yes
show_read_statistics yes
topuser_fields NUM DATE_TIME USERID CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
topuser_num 0
7. Jalankan SARG dengan :
/usr/bin/sarg -l /var/log/squid/logs/access.log
8. tinggal anda buka di browser dan arahkan ke localhost