This topic describes the fields of Kubernetes Nginx Ingress access logs.
Field | Description |
body_bytes_sent | The number of bytes in a response that is sent to the client. The response header is not counted. |
client_ip | The IP address of the client from which the request is sent. |
host | The domain name or the IP address of the server being requested. 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 | A request header field in the HTTP protocol, used to identify the originating URL of the request. |
http_user_agent | A request header in the HTTP protocol, used to identify information about the client initiating the HTTP 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 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 alternate name for the backend service to which the proxy may forward requests, following the Kubernetes naming convention of namespace-service-port. This field is optional, and when present, the proxy_upstream_name field is typically ignored. |