Alibaba Cloud CDN collects log data on an hourly basis. You can download the log data of a specific day within the last 30 days for analytics. This topic describes how to download log data, the usage notes, and the log fields.

This topic consists of the following sections:

Usage notes

  • Log update delay: In most cases, log data is generated within 24 hours after an event occurs. However, in some cases, it may take more than 24 hours to generate log data.
  • You can download log data that is generated in the last 30 days. If you want to retain log data for a longer period of time, you can use the log storage feature to store log data to an Object Storage Service (OSS) bucket. For more information, see Use Function Compute to deliver logs.
  • Naming rule for log entries: Accelerated domain name_year_month_day_start time_end time[extension field].gz. The extension field starts with an underscore (_). Example: aliyundoc.com_2018_10_30_000000_010000_xx.gz.
    Note Some log entries may not contain an extension field. Example: example.com_2018_10_30_000000_010000.gz.

Log fields and descriptions

  • Sample log entry
    [9/Jun/2015:01:58:09 +0800] - 1542 "-" "GET" 200 191 2830 MISS "Mozilla/5.0 (compatible; AhrefsBot/5.0; +" "text/html"
  • Fields
    Field Description
    [9/Jun/2015:01:58:09 +0800] The end time of the user access request. The IP address of the client that initiated the request.
    - The IP address of the proxy.
    1542 The response time. Unit: milliseconds.
    "-" The Referer header in HTTP requests.
    GET The request method. The request URL.
    200 The HTTP status code.
    191 The size of the request. Unit: bytes.
    2830 The size of the response. Unit: bytes.
    MISS The cache hit status. Valid values:
    • HIT: The request is a cache hit on CDN points of presence (POPs) and does not need to be redirected to the origin server.
    • MISS: The request is a cache miss on CDN POPs and must be redirected to POPs or the origin server.
    Note Alibaba Cloud CDN collects log data from POPs. If the field value is MISS, back-to-origin information is not provided. Therefore, the log data does not show if a request that is a cache miss is redirected to the origin server.
    Mozilla/5.0(compatible; AhrefsBot/5.0; + The User-Agent header.
    text/html The file type.


  1. Log on to the Alibaba Cloud CDN console.
  2. In the left-side navigation pane, choose Log Management > Offline Logs.
  3. On the Log Download page, select a domain name and a date, and then click Search.
  4. Find the log file that you want to download and click Download in the Actions column.

API operation

DescribeCdnDomainLogs: queries the address where you can download the log data of a domain name.