Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想生成一个只有POST /xmlrpc.php请求的报告,所以我运行以下命令:
POST /xmlrpc.php
zcat access.log.*.gz | grep 'POST /xmlrpc.php' | goaccess -a -o report-xmlrpc.html
报告的结果并未全部显示(在图表中我只看到 9 天,但我检查了其他日志,POST /xmlrpc.php几乎每天都有请求(总共 30 天))。
我使用 zat/grep/goaccess 错误吗?
您只解析 *.gz 日志,我假设您想解析所有日志(压缩和未压缩),请尝试以下操作:
zgrep -h 'POST /xmlrpc.php' access.log* | goaccess -a -o report-xmlrpc.html