goaccess 日志分析工具

最后更新于:2022-04-02 03:01:08

[TOC] > [github](https://github.com/allinurl/goaccess) > [home](https://goaccess.io/download) > [在线demo](https://rt.goaccess.io/?20200714222654) ## 概述 1. GoAccess允许使用任何自定义日志格式字符串。预定义的选项包括Apache,Nginx,Amazon S3,Elastic Load Balancing,CloudFront等 ## 安装 ### 编译安装 ``` $ wget https://tar.goaccess.io/goaccess-1.3.tar.gz $ tar -xzvf goaccess-1.3.tar.gz $ cd goaccess-1.3/ $ ./configure --enable-utf8 --enable-geoip=legacy $ make # make install ``` ### 直接安装 ``` yum install goaccess -y apt-get install goaccess -y brew install goaccess -y ``` ## 使用 ``` //在命令行中使用 goaccess /home/im_user/im_server/im_webserver/apache/logs/im_www.log // 启动多日志 goaccess access.log access.log.1 // 生成html 页面 goaccess /home/im_user/im_server/im_webserver/apache/logs/im_www.log -o /home/im_user/im_server/im_webserver/www/report.html --log-format ``` ## 实例图片 ![dp2AJK.jpg](https://s1.ax1x.com/2020/08/13/dp2AJK.jpg)
';