The log management feature allows you to download logs. This topic describes how to download logs.
Log generation rules
Logs are updated within 24 hours after events occur. However, during peak hours, logs may be delayed for more than 24 hours.
You can download only the logs that are generated in the last 30 days.
Log packages are named in the format of Domain name_Year_Month_Day_StartTime_EndTime. Example:
www.example.com_2018_10_30_000000_010000.gz
.
[9/Jun/2015:01:58:09 +0800] 188.165.XX.XX - 1542 "-" "GET http://www.aliyundoc.com/index.html" 200 191 2830 MISS "Mozilla/5.0 (compatible; AhrefsBot/5.0; +http://example.com/robot/)" "live" 1.1.X.X
The following table describes the fields in a log file.
Example value | Field description |
[9/Jun/2015:01:58:09 +0800] | The time. |
188.165.XX.XX | The access IP address. |
N/A | The proxy IP address. |
1542 | The response time. Unit: milliseconds. Note If you enable periodic logging for a domain name, this field indicates the time interval at which logs are generated, but not the response time of the persistent connection. |
N/A | The Referer header. |
GET | The request method. |
| The access URL. |
200 | The HTTP status code. |
191 | The request size. Unit: bytes. |
2830 | The response size. Unit: bytes. |
MISS | The cache hit status. Valid values:
|
| The User-Agent header. |
live | The file type. |
1.1.X.X | The IP address used to establish a connection. |
Log download
- Log on to the ApsaraVideo Live console.
In the left-side navigation pane, choose
. The Log Management page appears.Select the domain name and date that you want to query.
Click Search to query the logs of the domain name on the specified date.
Click Download in the Actions column to download the logs of the domain name on the specified date.