0

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?

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.