Log fields

更新时间:
复制 MD 格式

The following table lists the fields in Layer 7 access logs of Application Load Balancer (ALB).

Field

Description

__topic__

The topic of a log. Valid value: alb_layer7_access_log.

body_bytes_sent

The number of HTTP response body bytes sent to the client.

client_ip

The client IP address.

host

The domain name or IP address of a server. The value is first obtained from request parameters. If unavailable, the value is obtained from the Host header field. If still unavailable, the IP address of the backend server that processes the request is used.

http_host

The Host header of the request.

http_referer

The URL of the referring page.

http_user_agent

The User-Agent string of the client.

http_x_forwarded_for

The original client IP address recorded after the request is forwarded by the proxy.

http_x_real_ip

The real client IP address.

read_request_time

The time taken by the proxy to read the request. Unit: milliseconds.

request_length

The total length of the request, including the request line, headers, and body.

request_method

The request method.

request_time

The time from when the proxy receives the first request byte to when it returns a response. Unit: seconds.

request_uri

The URI of the request received by the proxy.

scheme

The request scheme. Valid values: HTTP and HTTPS.

server_protocol

The HTTP protocol version of the request. Example: HTTP/1.0 or HTTP/1.1.

slb_vport

The listening port of an ALB instance.

app_lb_id

The ID of an ALB instance.

ssl_cipher

The cipher suite used for the SSL connection. Example: ECDHE-RSA-AES128-GCM-SHA256.

ssl_protocol

The protocol used for the SSL connection. Example: TLS 1.2.

status

The HTTP status code returned by the proxy.

tcpinfo_rtt

The round-trip time (RTT) of a client TCP connection. Unit: microseconds.

time

The time when the log is generated.

upstream_addr

The IP address and port number of the backend server.

upstream_response_time

The time from when ALB connects to the backend server to when ALB receives the complete response and disconnects. Unit: seconds.

upstream_status

The HTTP status code returned by the backend server.

vip_addr

The virtual IP address.

write_response_time

The time taken by the proxy to write the response to the client after receiving it from the backend server. Unit: milliseconds.