|
| 1 | +log_format json_analytics escape=json '{' |
| 2 | + '"msec": "$msec", ' # request unixtime in seconds with a milliseconds resolution |
| 3 | + '"connection": "$connection", ' # connection serial number |
| 4 | + '"connection_requests": "$connection_requests", ' # number of requests made in connection |
| 5 | + '"pid": "$pid", ' # process pid |
| 6 | + '"request_id": "$request_id", ' # unique request id |
| 7 | + '"request_length": "$request_length", ' # request length (including headers and body) |
| 8 | + '"remote_addr": "$remote_addr", ' # client IP |
| 9 | + '"remote_user": "$remote_user", ' # client HTTP username |
| 10 | + '"remote_port": "$remote_port", ' # client port |
| 11 | + '"time_local": "$time_local", ' |
| 12 | + '"time_iso8601": "$time_iso8601", ' # local time in the ISO 8601 standard format |
| 13 | + '"request": "$request", ' # full path no arguments if the request |
| 14 | + '"request_uri": "$request_uri", ' # full path and arguments if the request |
| 15 | + '"args": "$args", ' # args |
| 16 | + '"status": "$status", ' # response status code |
| 17 | + '"body_bytes_sent": "$body_bytes_sent", ' # number of body bytes exclude headers sent to a client |
| 18 | + '"bytes_sent": "$bytes_sent", ' # number of bytes sent to a client |
| 19 | + '"http_referer": "$http_referer", ' # HTTP referer |
| 20 | + '"http_user_agent": "$http_user_agent", ' # user agent |
| 21 | + '"http_x_forwarded_for": "$http_x_forwarded_for", ' # http_x_forwarded_for |
| 22 | + '"http_host": "$http_host", ' # request Host: header |
| 23 | + '"server_name": "$server_name", ' # name of the vhost serving the request |
| 24 | + '"request_time": "$request_time", ' # request processing time in seconds with msec resolution |
| 25 | + '"upstream": "$upstream_addr", ' # upstream backend server for proxied requests |
| 26 | + '"upstream_connect_time": "$upstream_connect_time", ' # upstream handshake time incl. TLS |
| 27 | + '"upstream_header_time": "$upstream_header_time", ' # time spent receiving upstream headers |
| 28 | + '"upstream_response_time": "$upstream_response_time", ' # time spend receiving upstream body |
| 29 | + '"upstream_response_length": "$upstream_response_length", ' # upstream response length |
| 30 | + '"upstream_cache_status": "$upstream_cache_status", ' # cache HIT/MISS where applicable |
| 31 | + '"ssl_protocol": "$ssl_protocol", ' # TLS protocol |
| 32 | + '"ssl_cipher": "$ssl_cipher", ' # TLS cipher |
| 33 | + '"scheme": "$scheme", ' # http or https |
| 34 | + '"request_method": "$request_method", ' # request method |
| 35 | + '"server_protocol": "$server_protocol", ' # request protocol, like HTTP/1.1 or HTTP/2.0 |
| 36 | + '"pipe": "$pipe", ' # "p" if request was pipelined, "." otherwise |
| 37 | + '"gzip_ratio": "$gzip_ratio", ' |
| 38 | + '"http_cf_ray": "$http_cf_ray",' |
| 39 | +'}'; |
0 commit comments