+
95
-

回答

可以使用goaccess 

安装

apt install goaccess 或者yum install goaccess

根据自身nginx配置日志格式,给goaccess 参数log-format指定日志格式,time-format时间格式, -o 输出报告 goaccess --time-format="%H:%M:%S" --date-format="%d/%b/%Y" --log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u"' -o report.html

4.5g日志文件跑20分钟结果输出各种维度报告 流量大小 访问时间区间

800_auto

800_auto

800_auto

网友回复

我知道答案,我要回答