Fields in real-time logs

更新时间: 2026-04-01 01:55:20

Real-time logs include 29 fields. The tables below group fields by category for faster lookup.

Usage notes

Some internet service providers (ISPs) assign private IP addresses to clients in specific regions. When this happens, CDN nodes receive private IP addresses instead of public IP addresses from users.

Private IP address ranges:

ClassRangeSubnet mask
Class A10.0.0.0–10.255.255.25510.0.0.0/8
Class B172.16.0.0–172.31.255.255172.16.0.0/12
Class C192.168.0.0–192.168.255.255192.168.0.0/16

Real-time log delivery does not include an Origin field. To reconstruct the Origin value, concatenate refer_protocol and refer_domain.

Field reference

Time

No.FieldDescriptionIndexed by default
1unixtimeThe end time of the request, as a Unix timestamp.No

Domain

No.FieldDescriptionIndexed by default
2domainThe domain name to which the request was sent.Yes

Request

No.FieldDescriptionIndexed by default
3methodThe HTTP request method, such as GET, POST, or HEAD.Yes
4schemeThe protocol used to send the request, such as HTTP or HTTPS.Yes
5uriThe path of the requested resource, not including query parameters.Yes
6uri_paramThe query string of the request.Yes
15request_sizeThe size of the request.Yes
25http_rangeThe value of the Range header in the request. Example: bytes=0-100.No

Client IP

These fields capture the IP addresses involved in the request. When the client connects directly to the CDN node without a proxy, client_ip and remote_ip are identical, and proxy_ip is -.

No.FieldDescriptionIndexed by default
7client_ipThe originating IP address of the client — the first IP in the X-Forwarded-For header (X-Forwarded-For: <client_ip>, <proxy_ip>).
Note

Some ISPs assign private IP addresses to clients in specific regions, so this field may contain a private IP address. See also proxy_ip and remote_ip.

Yes
8proxy_ipThe proxy IP address — the second IP in the X-Forwarded-For header. Value is - when the client connects directly without a proxy. See also client_ip.No
9remote_ipThe IP address that established the TCP connection to the CDN node.Yes
10remote_portThe client port number used to connect to the CDN node.No

Referer

These fields represent the parsed components of the HTTP Referer header. To reconstruct an equivalent of the Origin header (not present in real-time logs), concatenate refer_protocol and refer_domain.

No.FieldDescriptionIndexed by default
11refer_protocolThe protocol portion of the HTTP Referer header, such as http or https.No
12refer_domainThe domain portion of the HTTP Referer header.Yes
13refer_uriThe URI path portion of the HTTP Referer header.Yes
14refer_paramThe query string portion of the HTTP Referer header.No

Response

No.FieldDescriptionIndexed by default
16request_timeThe response time. Unit: milliseconds.Yes
17response_sizeThe size of the response. Unit: bytes.Yes
18return_codeThe HTTP status code returned to the client, such as 200, 304, or 404.Yes
19sent_http_content_rangeThe value of the Range field in the response header. The Range value is specified by the origin server. Example: bytes=0-99/200.No
22body_bytes_sentThe size of the request body. Unit: bytes.No
23content_typeThe type of the requested resource.Yes

Cache

No.FieldDescriptionIndexed by default
24hit_infoThe cache hit result, excluding requests for live streaming resources or dynamic content. Valid values: HIT (cache hit) and MISS (cache miss).Yes

CDN node

No.FieldDescriptionIndexed by default
20server_addrThe IP address of the CDN node that served the request.No
21server_portThe port number on the CDN node that served the request.No

Other

No.FieldDescriptionIndexed by default
26user_agentThe User-Agent header value from the client request, identifying the client software.Yes
27uuidThe unique ID of the request (traceid).Yes
28via_infoThe Via header value, listing the proxy servers or gateways the request passed through.No
29xforwordforThe full X-Forwarded-For header value from the request, containing the chain of client and proxy IP addresses.Yes
上一篇: Configure real-time log delivery 下一篇: Regions that support real-time log delivery
阿里云首页 CDN 相关技术圈