게시물 1,375건
   
squid 로그 리포트 (Squeezer2)
글쓴이 : 최고관리자 날짜 : 2011-01-10 (월) 16:05 조회 : 19698
글주소 :
                                
 
webalizer 를 제외하고 스퀴드 로그파일을 분석해주는 툴을 뒤지다가 나온거다.
perl 로 되어있으며 현재 저장된 로그파일 위치만 잡아주면 된다.
 
ex)
echo ""
echo "Rotating squid logs"
/usr/local/sbin/squid -k rotate

echo ""
echo "Generating squid usage reports"
"/usr/local/bin/squeezer2.pl /var/squid/logs/access.log.0 >/var/www/htdocs/squeezer/SQ`date +%Y%m%d`.html
/usr/local/bin/squeezer2.pl >/var/www/htdocs/squeezer/all.html
 
 [root@localhost]# /usr/local/sbin/squid -k rotate

 
[root@localhost]# perl squeezer2.pl /home/squid/logs/access.log.0 > test.html
Use of uninitialized value in printf at ./squeezer2.pl line 1127 (#1)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.
    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in.  Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program.  For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.
 
 
페이지를 열어보면...아래처럼

 

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.