刚刚安装 goaccess
,我想解析nginx日志,但无法理解如何制作正确的日志格式 . 在nginx.conf中我有这种格式
'$server_addr $server_port $remote_addr $request_time $upstream_response_time $time_iso8601 $request $status $body_bytes_sent';
和文件的和平日志
192.168.2.35 8382 192.168.2.98 38.547 38.547 2016-01-14T13:30:22+02:00 POST /test/search?id=4587252-16 HTTP/1.1 200 4185
在goaccess conf文件中,我有这种格式
date_format %Y/%m/%d
time-format %H:%M:%S
log-format %h %^ %r %T %^ %^ %r %s %b
但得到一个错误
“无效处理 . 验证您的日期/时间/日志格式”
1 回答
您可以尝试以下格式: