简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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