goaccess nginx日志格式问题

goaccess nginx日志格式问题,nginx,goaccess,Nginx,Goaccess,刚刚安装了goaccess,我想解析nginx日志,但不知道如何制作正确的日志格式。在nginx.conf中,我有以下格式 '$server_addr $server_port $remote_addr $request_time $upstream_response_time $time_iso8601 $request $status $body_bytes_sent'; date_format %Y/%m/%d time-format %H:%M:%S log-format

刚刚安装了
goaccess
,我想解析nginx日志,但不知道如何制作正确的日志格式。在nginx.conf中,我有以下格式

'$server_addr $server_port $remote_addr $request_time $upstream_response_time $time_iso8601 $request  $status $body_bytes_sent';  
date_format %Y/%m/%d  
time-format %H:%M:%S  
log-format %h %^ %r %T %^ %^ %r %s %b  
和一个和平的日志文件

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文件中,我有以下格式

'$server_addr $server_port $remote_addr $request_time $upstream_response_time $time_iso8601 $request  $status $body_bytes_sent';  
date_format %Y/%m/%d  
time-format %H:%M:%S  
log-format %h %^ %r %T %^ %^ %r %s %b  
但是我犯了一个错误

“没有可处理的有效内容。请验证日期/时间/日志格式”


您可以尝试以下格式:

log-format %^ %^ %h %T %^ %dT%t+%^ %m %U %H %s %b
date-format %Y-%m-%d
time-format %H:%M:%S

谢谢在你写这封信之前我已经写了。。但在你的模板中,我看到“带宽”只有0字节。。。不管怎样,谢谢你的帮助