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. |
페이지를 열어보면...아래처럼