简体   繁体   English

Nginx GoAccess日期/时间/日志格式未解析

[英]Nginx goaccess date/time/log format not parsing

Basically i have a log lines like this: 基本上我有这样的日志行:

2015/12/13 07:58:59 [error] 1733#0: *125782 connect() failed (111: Connection refused) while connecting to upstream, client: 80.246.130.210, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.56.101:80/favicon.ico", host: "abc.com", referrer: "http://example.com/wert"

Which date/time/log format that i should use? 我应该使用哪种日期/时间/日志格式?

The following works for your log format: 以下适用于您的日志格式:

date-format %Y/%m/%d
time-format %H:%M:%S
log-format %d %t %^: %^: %^: %h,%^"%r",%^"%^",%^"%v",%^"%R"

I did not see any status code and request size, though. 我没有看到任何状态码和请求大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM