Tomcat Access log parameter

Source: Internet
Author: User
Tags session id

  • %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}iFor incoming headers
    • %{xxx}oFor outgoing response headers
    • %{xxx}cFor a specific cookie
    • %{xxx}rXXX is a attribute in the ServletRequest
    • %{xxx}sXXX is a attribute in the HttpSession
    • %{xxx}tXXX is a enhanced SimpleDateFormat pattern (see Configuration Reference document for details on supported time patterns)

Tomcat Access log parameter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.