All Products
Search
Document Center

Simple Log Service:SLB

Last Updated:Jul 15, 2024

This topic describes the fields in the Layer 7 access logs of Server Load Balancer (SLB).

Field

Description

__topic__

The topic of the log. The value is fixed as slb_layer7_access_log.

owner_id

The ID of the Alibaba Cloud account to which the SLB instance belongs.

region

The region where the SLB instance resides.

instance_id

The ID of the SLB instance.

instance_name

The name of the SLB instance.

network_type

The network type. Valid values:

  • VPC: virtual private cloud (VPC)

  • Classic: classic network

vpc_id

The ID of the VPC.

body_bytes_sent

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

client_ip

The IP address of the client.

client_port

The port of the client.

host

The IP address of the 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. If no value is obtained from request parameters or the Host header, the IP address of the backend server that processes the request is used as the value.

http_host

The Host header of the HTTP request.

http_referer

The Referer header of the HTTP request that is received by the proxy.

http_user_agent

The User-Agent header of the HTTP request that is received by the proxy.

http_x_forwarded_for

The X-Forwarded-For (XFF) header of the HTTP request that is received by the proxy.

http_x_real_ip

The originating IP address of the client.

read_request_time

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

request_length

The length of the request. The start line, HTTP request headers, and HTTP request body are all counted.

request_method

The method of the request.

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 the request that is received by the proxy.

scheme

The scheme of the request.

server_protocol

The HTTP version of the request that is received by the proxy.

slb_vport

The listening port of the SLB instance.

slbid

The ID of the SLB instance.

ssl_cipher

The cipher suite that is used.

ssl_protocol

The protocol that is used to establish an SSL connection.

status

The HTTP status code in the response that is sent by the proxy.

tcpinfo_rtt

The round-trip time (RTT) of the 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 the SLB instance connects to the backend server and the time when the SLB instance disconnects from the backend server after the required data is received.

upstream_status

The HTTP status code in the response 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 proxy to send the request to the client after the proxy receives the request from the backend server.