All Products
Search
Document Center

Simple Log Service:Log fields

Last Updated:Feb 01, 2024

This topic describes 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 bytes in the body of an HTTP response that is sent to a client.

client_ip

The IP address of a client.

host

The domain name or IP address of a server. By default, the value is obtained from request parameters. If no value is obtained from request parameters, the value is obtained from the host header field. If no value is obtained from request parameters or the host header field, the IP address of the backend server that processes the request is used as the value.

http_host

The host header field of a request.

http_referer

The URL of a source web page.

http_user_agent

The browser information of a client.

http_x_forwarded_for

The client IP address that is recorded after a request of a client is forwarded by the proxy.

http_x_real_ip

The real IP address of a client.

read_request_time

The duration in which the proxy reads a request message. Unit: milliseconds.

request_length

The length of a request. The request line, request headers, and request body are all counted.

request_method

The request method.

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.

request_uri

The URI of a request that is received by the proxy.

scheme

The schema of a request. Valid values: HTTP and HTTPS.

server_protocol

The HTTP version of a request that is received by the proxy. 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 that is used to establish an SSL connection. Example: ECDHE-RSA-AES128-GCM-SHA256.

ssl_protocol

The protocol that is used to establish an SSL connection. Example: TLS 1.2.

status

The HTTP status code that is sent 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 interval between the time when an ALB instance is connected to the backend server and the time when the ALB instance is disconnected from the backend server after the required data is received. Unit: seconds.

upstream_status

The HTTP status code that is received by the proxy from the backend server.

vip_addr

The virtual IP address.

write_response_time

The time that is taken by the ALB proxy to send the request to the client after the ALB proxy receives the request from the backend server. Unit: milliseconds.