The default value of each field is the format of the HTTP request request in DropWizard

The access log generated by Dropwizard has the following format: -

10.10.10.10 - - [16 / March / 2015: 23: 59: 59 +0530] "GET / yyyy / vx.x / uri HTTP / 1.1" 200 - "-" "-" 1

Field 1: - 10.10.10.10 (Ip Address from which the request was sent)

Field 2: - [16 / March / 2015: 23: 59: 59 +0530] (Time and date when the request arrived)

Field 3: - "GET / yyyy / vx.x / uri HTTP / 1.1" (HTTP Rest Rest API method)

Field 4: - 200 (HTTP response code)

Field 5: - "-" (????)

Field 6: - "-" (????) Field 7: - 1 (????)

Can someone explain the meaning of each field in the access log format? I'm more interested in learning about the last value of a column.

Thanks for the help.

+6
source share
1 answer

This journal is actually created by Jetty and is an extended version of the general NCSA journal format . You can view the source (search for the log method) .

Default settings:

  • Remote Server Address

  • Additional Authentication Information

  • Date and time of request

  • HTTP method, URI, and protocol for the request

  • HTTP response status code

  • Response length

  • HTTP header (if installed)

  • HTTP user agent (if installed)

  • Registration Delay

The last field (in particular, about which you asked) is the delay in milliseconds between the time of the request and the construction of the log message - it is effective how much time the server took to process the request.

+17
source

Source: https://habr.com/ru/post/983907/


All Articles