Files
tldr/pages.zh/linux/goaccess.md

20 lines
548 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# goaccess
> 一个开源的实时网页日志分析器。
> 更多信息:<https://goaccess.io>。
- 在交互模式下分析一个或多个日志文件:
`goaccess {{path/to/logfile1 path/to/file2 ...}}`
- 使用特定的日志格式或预定义的格式如“combined”
`goaccess {{path/to/logfile}} --log-format={{format}}`
-`stdin` 分析日志:
`tail -f {{path/to/logfile}} | goaccess -`
- 分析日志并实时写入 HTML 文件:
`goaccess {{path/to/logfile}} --output {{path/to/file.html}} --real-time-html`