Kubernetes Nginx Ingress access log fields and their descriptions.
|
Field |
Description |
|
body_bytes_sent |
The number of bytes sent to the client in the response body, excluding the response header. |
|
client_ip |
The IP address of the client that sent the request. |
|
host |
The domain name or IP address of the requested server. The host is determined first by the request parameter, then by the host header. If neither is available, the host is determined by the IP address of the backend server handling the request. |
|
http_referer |
The HTTP request header that identifies the URL from which the request originated. |
|
http_user_agent |
The HTTP request header that identifies the client initiating the request. |
|
x_forwarded_for |
The originating IP address of a client connecting through an HTTP proxy. |
|
request_length |
The total size of the HTTP request in bytes, including the request line, headers, and body. |
|
method |
The HTTP method used for the request, such as GET, POST, or HEAD. |
|
request_time |
The interval between the time when the proxy receives the first request and the time when the proxy returns a response. Unit: seconds. |
|
url |
The URI of the request. |
|
version |
The HTTP protocol version, such as HTTP/1.0 or HTTP/1.1. |
|
status |
The HTTP status code of the response from the proxy. |
|
time |
The time when the log entry is generated. |
|
upstream_addr |
The IP address and port number of the backend server. |
|
upstream_response_time |
The interval between the time when the Server Load Balancer instance connects to the backend server and the time when the instance disconnects from the backend server after the required data is received. Unit: seconds. |
|
upstream_status |
The HTTP status code received by the proxy from the backend server. |
|
proxy_upstream_name |
The designated name of the backend service to which the proxy forwards requests, following the Kubernetes naming convention namespace-service-port. |
|
proxy_alternative_upstream_name |
An alternative backend service name for request forwarding, in the Kubernetes naming format namespace-service-port. This field is optional. When present, the proxy_upstream_name field is typically ignored. |