刚刚安装了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 但是有个错误
“无有效处理。请验证您的日期/时间/日志格式”
发布于 2016-01-25 12:47:34
您可以尝试这种格式:
log-format %^ %^ %h %T %^ %dT%t+%^ %m %U %H %s %b
date-format %Y-%m-%d
time-format %H:%M:%Shttps://stackoverflow.com/questions/34988234
复制相似问题