-
which says nothing about logname and user,
- nor does it guarantee that the HTTP command field always consists of exactly 3 space-separated components (hint: it doesn't).
| [reply] [d/l] [select] |
"...3 space-separated components (hint: it doesn't)"
I used this: <LogFormat "%h %l %u %t \"%r\" %>s %b" common>, as in the example by kcott.
From the docs:
"First, the method used by the client is GET. Second, the client requested the resource /apache_pb.gif, and third, the client used the protocol HTTP/1.0."
Hence the request field will always look like this: "GET /karls.beer HTTP/1.0".
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
| [reply] [d/l] [select] |
| [reply] |
The Request-Line begins:
-- with a method token,
-- followed by the Request-URI
-- and the protocol version,
-- and ending with CRLF.
The elements are separated by SP characters.
No CR or LF is allowed except in the final CRLF sequence.
Request-Line = Method SP Request-URI SP HTTP-Version CRLF
div class= | [reply] [d/l] |
10.54.33.35 - - [18/Jun/2015:09:05:55 -0700] "-" 408 0
| [reply] [d/l] |