log-format The log-format variable followed by a space or \t for tab-delimited, specifies the log format string.
SPECIFIERS
%xA date and time field matching the time-format and date-format variables. This is used when a timestamp is given instead of the date and time being in two separate variables.%ttime field matching the time-format variable.%ddate field matching the date-format variable.%vThe server name according to the canonical name setting (Server Blocks or Virtual Host).%eThis is the userid of the person requesting the document as determined by HTTP authentication.%hhost (the client IP address, either IPv4 or IPv6)%rThe request line from the client. This requires specific delimiters around the request (single quotes, double quotes, etc) to be parsable. Otherwise, use a combination of special format specifiers such as%m,%U,%qand%Hto parse individual fields.- Note: Use either
%rto get the full request OR%m,%U,%qand%Hto form your request, do not use both.
- Note: Use either
%mThe request method.%UThe URL path requested.- Note: If the query string is in
%U, there is no need to use%q. However, if the URL path, does not include any query string, you may use%qand the query string will be appended to the request.
- Note: If the query string is in
%qThe query string.%HThe request protocol.%sThe status code that the server sends back to the client.%bThe size of the object returned to the client.%RThe “Referer” HTTP request header.%uThe user-agent HTTP request header.%DThe time taken to serve the request, in microseconds.%TThe time taken to serve the request, in seconds with milliseconds resolution.%LThe time taken to serve the request, in milliseconds as a decimal number.%^Ignore this field.%~Move forward through the log string until a non-space (!isspace) char is found.~hThe host (the client IP address, either IPv4 or IPv6) in a X-Forwarded-For (XFF) field.