When your domain fails to be accelerated or is under attack, you can analyze logs to troubleshoot issues. You can view operation logs for all domains under the current account and download them to your local computer. This topic describes the log format and how to use and query logs.
- The latency to ingest log data to the console is four hours. You can query the generated log files of the last four hours in the Logs module.
- Log files are generated once every hour. The number of log files generated for each hour is based on the amount of log data generated during that hour.
- A log file is named in the format of
AcceleratedDomain_Year_Month_Date_StartTime_EndTime. Example: www.test.com_2019_12_02_010000_020000.gz
- Sample log entry
[9/Jun/2019:01:58:09 +0800] 192.168.15.75 - 1542 "-" "GET http://www.aliyun.com/index.html" 200 191 2830 MISS "Mozilla/5.0 (compatible; AhrefsBot/5.0; +http://ahrefs.com/robot/)" "text/html"
- Log field description
The time when the log entry was generated.
The IP address of the client that initiated the request.
The proxy IP address.
The response time, in milliseconds.
The referer header in the request.
The HTTP method.
The URL that was requested.
The HTTP status code that was returned.
The request size, in bytes.
The response size, in bytes.
The cache hit status.
Mozilla/5.0 (compatible; AhrefsBot/5.0; +http://ahrefs.com/robot/)
The User-Agent header in the request.
The type of the file that was requested.
- Log on to the Dynamic Route for CDN console.
- In the left-side navigation pane, choose .
- On the Logs page, select a domain, select a date, and then click Search.
- Find the target log file, and click Download in the Actions column.