[TOC] > [github](https://github.com/allinurl/goaccess) > [home](https://goaccess.io/download) ## 概述 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 ```