- %a-remote IP Address
- %a-local IP Address
- %b-bytes sent, excluding HTTP headers, or '-' if no Bytes were sent
- %b-bytes sent, excluding HTTP headers
- %h-remote host name (or IP address if enablelookups for the connector is false)
- %h-request protocol
- %l-remote logical username from Identd (always returns '-')
- %m-request method
- %p-local Port
- %q-query string (prepended with a ' "if it exists, otherwise an empty string
- %r-first Line of the request
- %s-http status Code of the response
- %s-user Session ID
- %t-date and time, in Common Log format format
- %u-remote user that is authenticated
- %u-requested URL Path
- %v-local Server Name
- %d-time taken to process the request, in Millis
- %t-time taken to process the request, in seconds
- %i-current Request thread Name (can compare later with stacktraces)
Two special
- Common -
%h %l %u %t "%r" %s %b
- combined -
%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"
High-level
%{xxx}i
For incoming headers
%{xxx}o
For outgoing response headers
%{xxx}c
For a specific cookie
%{xxx}r
XXX is a attribute in the ServletRequest
%{xxx}s
XXX is a attribute in the HttpSession
%{xxx}t
XXX is a enhanced SimpleDateFormat pattern (see Configuration Reference document for details on supported time patterns)
Tomcat Access log parameter