web日志分析软件--goaccess

 最近发现了一个web日志实时分析软件,据作者讲占用资源不多,如果结合日志合并工具,应该是个很不错的工具。官网这样介绍它可以分析的web日志格式:GoAccess allows any custom log format string。

 

  • Common Log Format (CLF) Apache
  • Combined Log Format (XLF/ELF) Apache
  • W3C format (IIS).
  • Apache virtual hosts

    在debian或者ubuntu上可以通过apt安装:apt-get install goaccess

官网介绍该软件主要有以下作用:

  • General Statistics, bandwidth etc.
  • Top Visitors
  • Requested files
  • Requested static files, images, swf, js, etc.
  • Referrers URLs
  • 404 or Not Found
  • Operating Systems
  • Browsers and Spiders
  • Hosts, Reverse DNS, IP Location
  • HTTP Status Codes
  • Referring Sites
  • Keyphrases
  • Support for IPv6
  • Different Color Schemes
  • Unlimited log file size
  • Custom log format
  • Output statistics to a file. 

看起来功能真不错。先看看安装完成后,goaccess命令怎么使用:

 

1 goaccess [ -b ][ -s ][ -e IP_ADDRESS][ - a ] <-f log_file >
2  
3    -b 流量消耗统计,如果想要提高解析速度,不要开启这个选项。缺省值为不开启此选项
4    -f 日志文件路径。
5    -s HTTP 状态码报告,为了能够更好的解析日志,选项被默认关闭。
6    -e 指定IP地址的访问统计。
7    -a 通过代理的请求统计。

下面附一张分析截图:

猜你喜欢

转载自reeboo.iteye.com/blog/2031794