goaccess备忘
2017-10-13 11:22
211 查看
安装支持组件yum install geoip-devel
$ wget http://tar.goaccess.io/goaccess-1.2.tar.gz
$ tar -xzvf goaccess-1.2.tar.gz
$ cd goaccess-1.2/
$ ./configure --enable-utf8 --enable-geoip=legacy
$ make
# make install
goaccess.conf后增加日志格式
time-format %T
date-format %d/%b/%Y
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"
To generate an HTML report, just run it against your web log file: (-a is optional)
# goaccess /var/log/apache2/access.log -a -o report.html
OR
# zcat -f /var/log/apache2/access.log* | goaccess -a -o report.html
Just generate a static report and place the output html file under your web server www public folder. You need to add a couple of additional real-time flags. The use of --real-time-html is required.
# goaccess access.log -o /usr/share/nginx/www/rt.goaccess.io/report.html --real-time-html
Upon opening the generated report in your browser, the report will try to establish a WebSocket connection to the host name (window.location.hostname) where the generated report is running from.
Also, it is worth pointing out that if we want to run GoAccess at lower priority, we can run it as:
# nice -n 19 goaccess access.log -a
and if you don't want to install it on your server, you can still run it from your local machine:
# ssh root@192.168.9.213 'zcat /data/wwwlogs/nginx.log-2017*' | goaccess -a -o /data/wwwroot/Goaccess/report2017.html
$ wget http://tar.goaccess.io/goaccess-1.2.tar.gz
$ tar -xzvf goaccess-1.2.tar.gz
$ cd goaccess-1.2/
$ ./configure --enable-utf8 --enable-geoip=legacy
$ make
# make install
goaccess.conf后增加日志格式
time-format %T
date-format %d/%b/%Y
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"
To generate an HTML report, just run it against your web log file: (-a is optional)
# goaccess /var/log/apache2/access.log -a -o report.html
OR
# zcat -f /var/log/apache2/access.log* | goaccess -a -o report.html
Just generate a static report and place the output html file under your web server www public folder. You need to add a couple of additional real-time flags. The use of --real-time-html is required.
# goaccess access.log -o /usr/share/nginx/www/rt.goaccess.io/report.html --real-time-html
Upon opening the generated report in your browser, the report will try to establish a WebSocket connection to the host name (window.location.hostname) where the generated report is running from.
Also, it is worth pointing out that if we want to run GoAccess at lower priority, we can run it as:
# nice -n 19 goaccess access.log -a
and if you don't want to install it on your server, you can still run it from your local machine:
# ssh root@192.168.9.213 'zcat /data/wwwlogs/nginx.log-2017*' | goaccess -a -o /data/wwwroot/Goaccess/report2017.html
相关文章推荐
- GoAccess日志分析
- nginx日志分析工具goaccess
- 最佳Nginx日志分析工具Goaccess
- GoAccess 分析nginx 日志
- CYGwin/Centos7下安装Goaccess
- Goaccess安装与使用
- goaccess apache日志分析工具
- 常用linux高级命令
- Nginx、tomcat访问日志准实时分析统计--goaccess
- GoAccess初识
- 在Linux中使用GoAccess分析Nginx的日志
- Goaccess 日志分析工具
- 日志分析利器GoAcess的使用
- 用goaccess每天自动分析nginx日志
- squid日志分析
- 用GoAccess来分析Nginx日志
- goaccess安装和使用(命令行、网页等)
- goaccess配置nginx日志解析
- goaccess在定时任务中不执行的问题
- 日志分析工具goaccess