°Ô½Ã¹° 11°Ç
   
squid ·Î±× ¸®Æ÷Æ® (sarg)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-01-11 (È­) 12:40 Á¶È¸ : 19791
±ÛÁÖ¼Ò :
                                
 
[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
        sarg-2.3.1 Sep-18-2010
       
http://sarg.sourceforge.net
        Please donate to the sarg project:
               
http://sarg.sourceforge.net/donations.php

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.