GoAccess 被设计成快速的并基于终端的日志分析工具。其核心理念是不需要通过 Web 浏览器就能快速分析并实时查看 Web 服务器的统计数据
终端输出仅仅是默认的输出方式,GoAccess 还支持生成完整的实时 HTML 报告(这对分析、监控以及数据可视化都是极好的),以及 JSON 和 CSV 格式的报告。
官网
https://goaccess.io/
中文官网
https://www.goaccess.cc/
goaccess v1.6.3 安装命令
wget https://tar.goaccess.io/goaccess-1.6.3.tar.gz tar -xzvf goaccess-1.6.3.tar.gz cd goaccess-1.6.3/ ./configure --enable-utf8 --enable-geoip=mmdb make make install goaccess -V
中文面板
需在goaccess命令前添加 LANG="zh_CN.UTF-8"
LANG="zh_CN.UTF-8" goaccess /www/wwwlogs/yuemuyou.cn.log -o /www/wwwroot/html/report.html --real-time-html --time-format='%H:%M:%S'--date-format='%d/%b/%Y' --log-format=COMBINED
异常错误解决方案
configure: error: *** Missing development files for the GeoIP library 经过测试,安装需要的软件包: yum install -y GeoIP-devel
经过测试,安装需要的软件包:wget -c https://github.com/maxmind/libmaxminddb/releases/download/1.5.2/libmaxminddb-1.5.2.tar.gz tar xf libmaxminddb-1.5.2.tar.gz cd libmaxminddb-1.5.2 ./configure && make && make install ldconfig
评论