hardc0der
hardc0der

Reputation: 469

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?

Upvotes: 0

Views: 875

Answers (1)

Kayla
Kayla

Reputation: 919

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.

Upvotes: 1

Related Questions