nginx logformat Description

The record about the instructions nginx logformat

log_format format variable:
$ REMOTE_ADDR # record access the website address of the client
$ remote_user # remote client user name
$ time_local # record access time and time zone
$ request # user http request start line URI information request and the HTTP protocol
$ status # http status code, the request to record the status code returned, for example: 200,301,404 like
$ upstream_status #upstream state
$ body_bytes_sent # server to a client in response to body bytes
$ http_referer # record from which the access request is connected over It may be set based on the security chain parameter.
$ http_user_agent # records client access information such as: browser, mobile client, etc.
$ ssl_protocol #SSL Protocol version
algorithm $ ssl_cipher # exchange data
$ upstream_addr # backstage upstream of address, that really provide services host address
$ request_time # the total time of the entire request
$ upstream_response_time # request process, upstream response time
when a proxy server is $ http_x_forwarded_for #-end, set the web address of the client node configuration records, provided that the entry into force of this parameter is related to the proxy server must also be set x_forwarded_for

Guess you like

Origin www.cnblogs.com/newmanzhang/p/11390347.html