Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goaccess的使用 #42

Open
wzhanjun opened this issue May 22, 2020 · 0 comments
Open

goaccess的使用 #42

wzhanjun opened this issue May 22, 2020 · 0 comments
Labels

Comments

@wzhanjun
Copy link
Owner

wzhanjun commented May 22, 2020

goaccess 使用

1. 项目地址

https://goaccess.io/get-started

2. 安装


$ wget http://tar.goaccess.io/goaccess-1.2.tar.gz
$ tar -xzvf goaccess-1.2.tar.gz
$ cd goaccess-1.2/
# --with-openssl项开启openssl,HTTPS时需要
$ ./configure --enable-utf8 --enable-geoip=legacy --with-openssl
$ make
$ make install

[配置](https://goaccess.io/faq#configuration)
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"

3. 操作方法


F1   主帮助页面
F5   重绘主窗口
q    退出
1-15 跳转到对应编号的模块位置 
o    打开当前模块的详细视图
j    当前模块向下滚动
k    当前模块向上滚动
s    对模块排序
/    在所有模块中搜索匹配
n    查找下一个出现的位置
g    移动到第一个模块顶部
G    移动到最后一个模块底部

4 使用

goaccess access.log --log-format=COMBINED

goaccess -f access.log -o output.html

参考

https://segmentfault.com/a/1190000016383026
https://ericdraken.com/goaccess-web-log-analyzer-installation-centos/

@wzhanjun wzhanjun added the linux label May 22, 2020
@wzhanjun wzhanjun changed the title goaccess的使用.md goaccess的使用 May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant