GoAccess分析Nginx日志
官方网站:https://goaccess.io/
为什么Nginx需要GoAccess日志
因为GoAccess可以用于实时分析Access.log,包括图形化的形式展示,并通过WebSocket监听日志变化,实时反应到浏览器中
安装GoAccess
参照官网直接安装即可
$ wget https://tar.goaccess.io/goaccess-1.4.tar.gz
$ tar -xzvf goaccess-1.4.tar.gz
$ cd goaccess-1.4/
$ ./configure --enable-utf8 --enable-geoip=legacy
$ make
# make install
其中在第四步可能会出现一些问题
问题1:
Missing development files for the GeoIP library
缺少了地理数据库,解决方法如下