웹로그 분석기를 뒤지다가 재밌는것들이 있어서 소개합니다.
이건 커맨드로 실행해서 확인하는데 실시간이 반영되고 비쥬얼적으로도 있어보이고 좋으네요~ㅋ
설치방법
# tar zxvf goaccess-0.4.2.tar.gz
# mv goaccess-0.4.2 goaccess
# ./configure; make; make install
# ./goaccess
GoAccess - 0.4.2
Usage: goaccess [ -b ][ -s ][ -e IP_ADDRESS][ - a ]< -f log_file >
The following options can also be supplied to the command:
-f <argument> - Path to input log file.
-b - Enable total bandwidth consumption.
For faster parsing, don't enable this flag.
-s - Enable HTTP status codes report.
For faster parsing, don't enable this flag.
-a - Enable a List of User-Agents by host.
For faster parsing, don't enable this flag.
-e <argument> - Exclude an IP from being counted under the
HOST module. Disabled by default.
Examples can be found by running `man goaccess`.
보다 자세한건 man 페이지를 통해서
# man goaccess
옵션도 다양하고 색깔등도 바꿀수 있으니 MAN 페이지를 통해서 하나씩 확인해보세요...
# ./goaccess -f /DATA/logs/chonnom.com-access_log
./goaccess -f /DATA/logs/chonnom.com-access_log -b