[root@chonnom root]# ./configure
[root@chonnom root]# make; make install;
### ·¹Æ÷Æà µð·ºÅ丮 »ý¼º
[root@chonnom root]# mkdir -p /var/www/html/reports/
### config ÆÄÀϼöÁ¤ (º»ÀÎÀÌ ÇÊ¿äÇѺκп¡ µû¶ó¼ ¾Ë¾Æ¼)
[root@chonnom root]# /etc/sarg/sarg.conf
language Windows-1251 access_log /var/log/squid/access.log.1 # yesterday log title "Squid report for proxy1" output_dir /var/www/html/reports/sarg date_format e charset Koi8-r www_document_root /var/www/html
user_ip no
[root@chonnom root]# sarg -f sarg.conf
SARG: Records in file: 14644, reading: 100.00% SARG: Successful report generated on //var/www/html/reports/sarg/report/2011Jan11-2011Jan11 |
### ¸ÞÀÎÆäÀÌÁö
### ³¯Â¥¸¦ Ŭ¸¯Çؼ µé¾î°¡¸é ¾Æ·¡¿Í °°ÀÌ ¾ÆÀÌÇǺ°(Top User) µµ¸ÞÀκ°·Î(Top sites) ¸®½ºÆ®È®ÀÎÀÌ °¡´ÉÇÏ´Ù.
[root@chonnom root]# sarg -h Usage: sarg [options...] -a Hostname or IP address -b Useragent log -c Exclude file -d Date from-until dd/mm/yyyy-dd/mm/yyyy -e Email address to send reports (stdout for console) -f Config file (/usr/local/etc/sarg.conf) -g Date format [e=Europe -> dd/mm/yyyy, u=USA -> mm/dd/yyyy] -h This help -i Reports by user and IP address -l Input log -n Resolve IP Address -o Output dir -p Use Ip Address instead of userid (reports) -s Accessed site [Eg. www.microsoft.com, www.netscape.com] -t Time [HH, HH:MM] -u User -w Temporary dir -x Debug messages -z Process messages -convert Convert the access.log file to a legible date -split Split the log file by date in -d parameter
|