一.下载
下载地址:http://goaccess.io/
二.安装
yum -y install glib2 glib2-devel ncurses ncurses-devel GeoIP*
./configure –enable-geoip –enable-utf8
make && make install
三.使用
1.命令行直接查看
goaccess -f access.log -c -a
2.输出到html中
配置~/.goaccessrc文件
color_scheme 0
date_format %d/%b/%Y
log_format %h %^[%d:%^] “%r” %s %b “%R” “%u” %T
生成命令
goaccess -f /web/nginx/logs/access.log -a > report.html
参考:
http://my.oschina.net/mrco/blog/181737