Created
May 14, 2025 09:21
-
-
Save polarnik/40cec6704441808b0cd3bffcdff9e8b8 to your computer and use it in GitHub Desktop.
nginx.conf.accesslog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://nginx.org/en/docs/http/ngx_http_core_module.html | |
| log_format json_combined escape=json '{' | |
| '"arg_customFields":"$arg_customFields",' | |
| '"arg_fields":"$arg_fields",' | |
| '"body_bytes_sent":"$body_bytes_sent",' | |
| '"bytes_sent":"$bytes_sent",' | |
| '"connection":"$connection",' | |
| '"connection_requests":"$connection_requests",' | |
| '"connection_time":"$connection_time",' | |
| '"content_length":"$content_length",' | |
| '"gzip_ratio":"$gzip_ratio",' | |
| '"http2":"$http2",' | |
| '"http_referer":"$http_referer",' | |
| '"http_user_agent":"$http_user_agent",' | |
| '"otel_parent_id":"$otel_parent_id",' | |
| '"otel_parent_sampled":"$otel_parent_sampled",' | |
| '"otel_span_id":"$otel_span_id",' | |
| '"otel_trace_id":"$otel_trace_id",' | |
| '"pid":"$pid",' | |
| '"proxy_port":"$proxy_port",' | |
| '"query_string":"$query_string",' | |
| '"remote_addr":"$remote_addr",' | |
| '"request":"$request",' | |
| '"request_length":"$request_length",' | |
| '"request_method":"$request_method",' | |
| '"request_time":"$request_time",' | |
| '"request_uri":"$request_uri",' | |
| '"server_port":"$server_port",' | |
| '"server_protocol":"$server_protocol",' | |
| '"status":"$status",' | |
| '"time_local":"$time_local",' | |
| '"uri":"$uri",' | |
| '"uri_template":"$uri_template"' | |
| '}'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment