CDN and shielding server request logs reference
CDN and shielding server request logs differ depending on your provider.
Learn more about exporting logs in the Log export section.
Yandex Cloud CDN
Yandex Cloud CDN logs are stored in JSON format. One log entry represents one request to a CDN server.
Log example
{
"resource_id": "cdnrxyssrqvk********",
"timestamp_ms": "2025-11-17 16:23:18.798",
"bytes_sent": 103356,
"request_uri": "/probe/test_file_102400.mp4?size=102400",
"status": "200",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 YaBrowser/25.8.0.0 Safari/537.36",
"request_id": "3ecf1d50********",
"remote_addr": "178.19.*.*",
"upstream_addr": "",
"request_time": 0,
"upstream_cache_status": "HIT",
"http_host": "*******.cdn.yandex.net",
"upstream_response_time": ""
}
Log fields
|
Field |
Type |
Description |
|
|
String |
Client resource ID. |
|
|
String |
Event time (UTC). |
|
|
Int64 |
Total number of bytes sent to the client, including the response header. |
|
|
String |
Full original resource URI received by the edge server. |
|
|
String |
Response code sent to the client for the request. |
|
|
String |
Identifies the client browser that has made the request. |
|
|
String |
Internal request ID within the service. |
|
|
String |
IP of the client that has made the request. |
|
|
String |
IP address of the source that has responded to the request. This field will be empty if the response originated from the edge server cache. |
|
|
Float |
Request processing time in seconds. It is the time elapsed from when the first bytes were read from the client until the log entry was made after the last bytes were sent to the client. |
|
|
String |
Cache processing status. The possible values are:
|
|
|
String |
Domain name specified by the client in the Host HTTP header when accessing the server. |
|
|
String |
Source response time. This field will be empty if the response originated from the edge server cache. |
EdgeCDN
EdgeCDN
Log format
"$remote_addr" "-" "$remote_user" "[$time_local]" "$request" "$status" "$body_bytes_sent" "$http_referer" "$http_user_agent" "$bytes_sent"
"$edgename" "$scheme""$host" "$request_time" "$upstream_response_time" "$request_length" "$http_range" "[$responding_node]"
"$upstream_cache_status" "$upstream_response_length" "$upstream_addr" "$gcdn_api_client_id" "$gcdn_api_resource_id" "$uid_got" "$uid_set"
"$geoip_country_code" "$geoip_city" "$shield_type" "$server_addr" "$server_port" "$upstream_status" "-" "$upstream_connect_time"
"$upstream_header_time" "$shard_addr" "$geoip2_data_asnumber" "$connection" "$connection_requests" "$request_id" "$http_x_forwarded_proto"
"$http_x_forwarded_request_id" "$ssl_cipher" "$ssl_session_id" "$ssl_session_reused" "$sent_http_content_type" "$real_tcpinfo_rtt"
"$http_x_forwarded_http_ver" "$vp_enabled" "$geoip2_region"
Log example
"0.0.0.0" "-" "-" "[26/Apr/2019:09:47:40 +0000]" "GET /ContentCommon/images/image.png HTTP/1.1" "200" "1514283" "https://example.com/videos/10"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 YaBrowser/16.10.0.2309 Safari/537.36"
"1514848" "[dh-up-gc18]" "https" "cdn.example.com" "1.500" "0.445" "157" "bytes=0-1901653" "[dh]" "MISS" "10485760" "0.0.0.0:80" "2510" "7399" "-"
"-" "KZ" "-" "shield_no" "0.0.0.0" "80" "206" "-" "0.000" "0.200" "0.0.0.0" "asnumber" "106980391" "1" "c1c0f12ab35b7cccccd5dc0a********" "-" "-"
"ECDHE-RSA-AES256-GCM-SHA384" "28a4184139cb43cdc79006cf2d1a4ac9********" "r" "application/json" "11863" "HTTP/1.1" "1" "AMU"
Log variables
EdgeCDN system variables do not carry valuable information for client analysis.
|
Variable |
Value from the example |
Comment |
|
|
|
User IP address. |
|
|
|
This field is not used. |
|
|
Internal system variable. |
Username used in Basic authentication. |
|
|
|
Local time in Common Log Format |
|
|
|
HTTP request type, path to requested file, HTTP version. |
|
|
|
CDN server response code. |
|
|
|
Number of bytes transmitted to the client, excluding the response header. |
|
|
|
URL the user came from. |
|
|
|
User Agent the user used to request the file (browser or another program). |
|
|
|
Number of bytes transmitted to the user. |
|
|
|
Name of the responding CDN server in EdgeCDN. |
|
|
|
Request protocol (HTTP or HTTPS). |
|
|
|
Personal domain of the CDN resource. |
|
|
|
Request processing time, which is time elapsed from when the first bytes were read from the client until the log entry was made after the last bytes were sent to the client, in seconds with millisecond precision. |
|
|
|
Time spent to get the response from the source, in seconds with millisecond precision. For multiple responses, the time should be separated by commas and colons. |
|
|
|
Request length (including the request line, header, and body). |
|
|
|
Size of the file fragment in a Range request. |
|
|
|
Name of the responding EdgeCDN data center. |
|
|
|
Status of the requested file in the CDN cache:
|
|
|
|
Length of response from source, stored in bytes. For multiple responses, lengths should be separated by commas and colons. |
|
|
|
Source IP address and port. |
|
|
Internal system variable. |
Your ID in the EdgeCDN system. |
|
|
Internal system variable. |
Your resource's ID in EdgeCDN. |
|
|
Internal system variable. |
Cookie name and received user ID. |
|
|
Internal system variable. |
Cookie name and issued user ID. |
|
|
|
User's country code. |
|
|
|
User's city code. |
|
|
Internal system variable. |
The shielding on this resource is:
|
|
|
Internal system variable. |
IP address of responding anycast zone or CDN server. |
|
|
Internal system variable. |
Port the request arrived on. |
|
|
|
Source response code. |
|
|
|
This field is not used. |
|
|
|
Time spent to connect to the source, in seconds with millisecond precision. |
|
|
|
Time spent to get response headers from the source, in seconds with millisecond precision. |
|
|
Internal system variable. |
IP address of the CDN server that initially accepted the client's request with sharding enabled for the resource. |
|
|
|
Number of the autonomous system the user's request originated from. |
|
|
Internal system variable. |
Sequence number of the connection. |
|
|
Internal system variable. |
Current number of requests in the connection. |
|
|
Internal system variable. |
Unique request ID generated from 16 random bytes, in hexadecimal format. |
|
|
|
Initial incoming request protocol (HTTP or HTTPS). |
|
|
Internal system variable. |
Initial ID of the incoming request. |
|
|
Internal system variable. |
Cipher used for the established SSL connection. |
|
|
Internal system variable. |
Established SSL connection session ID. |
|
|
Internal system variable. |
Returns |
|
|
|
Value of HTTP Content-Type header indicating the MIME type of the transmitted resource. |
|
|
|
Average time required to transmit a packet to and from the server (latency). |
|
|
|
HTTP version in the user's request. |
|
|
|
Flag for the Streaming platform feature set.
|
|
|
|
Region name according to the ISO 3166-2 |
You can learn more about EdgeCDN logs in this EdgeCenter guide