월간 인기 게시물

게시물 1,372건
   
squid 로그 리포트 (sarg)
글쓴이 : 최고관리자 날짜 : 2011-01-11 (화) 12:40 조회 : 20665
글주소 :
                                
 
[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.