tencent cloud

Feedback

Downloading Logs

Last updated: 2024-09-11 10:06:24
    
    You can download a CDN access log for the last 30 days, which contains the details of every request made to VOD. Logs are recorded hourly.

    Downloading Logs

    1. Log in to the VOD console and click Download Log > CDN Log on the left sidebar.
    2. Select a time range and domain name to get the download link.
    
    
    Note:
    If a domain receives no requests in a day, no logs will be generated, and no data will be displayed.
    By default, CDN access is logged on an hourly basis. That means 24 log files will be generated at most for a day. No log file will be generated for an hour during which there are no requests.
    CDN logs may have a delay of about 30 minutes.

    Log Fields

    Decompress the package downloaded and open the log files with Notepad. Different fields are separated by space. Below is part of a log file.
    
    
    Sequence
    Field Meaning
    1
    Request time
    2
    IP address of the client accessing the domain
    3
    Accessed domain name
    4
    File request path
    5
    Number of bytes of this access request
    6
    Province. For more information, see province mapping below.
    7
    ISP. For more information, see ISP mapping below.
    8
    HTTP status code
    9
    Referer information
    10
    Response time in milliseconds
    11
    User-Agent information
    12
    Range parameter
    13
    HTTP method
    14
    Protocol identifier
    15
    Cache hit/miss
    16
    The port via which connection is established between the client and CDN node. If there isn’t such a port, the value of this field is -.

    Region/ISP mappings

    Chinese mainland provinces

    Region ID
    Region
    Region ID
    Region
    Region ID
    Region
    22
    Beijing
    86
    Inner Mongolia
    146
    Shanxi
    1069
    Hebei
    1177
    Tianjin
    119
    Ningxia
    152
    Shaanxi
    1208
    Gansu
    1467
    Qinghai
    1468
    Xinjiang
    145
    Heilongjiang
    1445
    Jilin
    1464
    Liaoning
    2
    Fujian
    120
    Jiangsu
    121
    Anhui
    122
    Shandong
    1050
    Shanghai
    1442
    Zhejiang
    182
    Henan
    1135
    Hubei
    1465
    Jiangxi
    1466
    Hunan
    118
    Guizhou
    153
    Yunnan
    1051
    Chongqing
    1068
    Sichuan
    1155
    Tibet
    4
    Guangdong
    173
    Guangxi
    1441
    Hainan
    0
    Other
    1
    Hong Kong (China), Macao (China), and Taiwan (China)
    -1
    Outside the Chinese mainland
    
    
    
    

    Chinese mainland ISPs

    ISP ID
    ISP
    ISP ID
    ISP
    ISP ID
    ISP
    2
    China Telecom
    26
    China Unicom
    38
    CERNET

    Regions outside the Chinese mainland

    Region ID
    Region
    Region ID
    Region
    Region ID
    Region
    2000000001
    Asia Pacific Zone 1 (service area)
    765
    Slovakia
    1617
    Ivory Coast
    2000000002
    Asia Pacific Zone 2 (service area)
    766
    Serbia
    1620
    Sudan
    2000000003
    Asia Pacific Zone 3 (service area)
    770
    Finland
    1681
    Mauritius
    2000000004
    Middle East (service area)
    773
    Belgium
    1693
    Morocco
    2000000005
    North America (service area)
    809
    Bulgaria
    1695
    Algeria
    2000000006
    Europe (service area)
    811
    Slovenia
    1698
    Guinea
    2000000007
    South America (service area)
    812
    Moldova
    1730
    Senegal
    2000000008
    Africa (service area)
    813
    Macedonia
    1864
    Tunisia
    -20
    Asia (client area)
    824
    Estonia
    1909
    Uruguay
    -21
    South America (client area)
    835
    Croatia
    1916
    Greenland
    -22
    North America (client area)
    837
    Poland
    2026
    Taiwan (China)
    -23
    Europe (client area)
    852
    Latvia
    2083
    Myanmar
    -24
    Africa (client area)
    857
    Jordan
    2087
    Brunei
    -25
    Oceania (client area)
    884
    Kyrgyzstan
    2094
    Sri Lanka
    35
    Nepal
    896
    Ireland
    2150
    Panama
    57
    Thailand
    901
    Libya
    2175
    Colombia
    73
    India
    904
    Armenia
    2273
    Monaco
    144
    Vietnam
    921
    Yemen
    2343
    Andorra
    192
    France
    971
    Luxembourg
    2421
    Turkmenistan
    207
    United Kingdom
    1036
    New Zealand
    2435
    Laos
    208
    Sweden
    1044
    Japan
    2488
    East Timor
    209
    Germany
    1066
    Pakistan
    2490
    Tonga
    213
    Italy
    1070
    Malta
    2588
    Philippines
    214
    Spain
    1091
    Bahamas
    2609
    Venezuela
    386
    United Arab Emirates
    1129
    Argentina
    2612
    Bolivia
    391
    Israel
    1134
    Bangladesh
    2613
    Brazil
    397
    Ukraine
    1158
    Cambodia
    2623
    Costa Rica
    -
    -
    1159
    Macao (China)
    2626
    Mexico
    417
    Kazakhstan
    1176
    Singapore
    2639
    Honduras
    428
    Portugal
    1179
    Maldives
    2645
    El Salvador
    443
    Greece
    1180
    Afghanistan
    2647
    Paraguay
    471
    Saudi Arabia
    1185
    Fiji
    2661
    Peru
    529
    Denmark
    1186
    Mongolia
    2728
    Nicaragua
    565
    Iran
    1195
    Indonesia
    2734
    Ecuador
    578
    Norway
    1200
    Hong Kong (China)
    2768
    Guatemala
    669
    United States
    1233
    Qatar
    2999
    Aruba
    692
    Syria
    1255
    Iceland
    3058
    Ethiopia
    704
    Cyprus
    1289
    Albania
    3144
    Bosnia and Herzegovina
    706
    Czech
    1353
    Uzbekistan
    3216
    Dominican
    707
    Switzerland
    1407
    San Marino
    3379
    South Korea
    708
    Iraq
    1416
    Kuwait
    3701
    Malaysia
    714
    Netherlands
    1417
    Montenegro
    4450
    Australia
    717
    Romania
    1493
    Tajikistan
    4460
    Chinese mainland
    721
    Lebanon
    1501
    Bahrain
    -15
    Asia - other
    725
    Hungary
    1543
    Chile
    -14
    South America - other
    726
    Georgia
    1559
    South Africa
    -13
    North America - other
    731
    Azerbaijan
    1567
    Egypt
    -12
    Europe - other
    734
    Austria
    1590
    Kenya
    -11
    Africa - other
    736
    Palestine
    1592
    Nigeria
    -10
    Oceania - other
    737
    Türkiye
    1598
    Tanzania
    -2
    Outside the Chinese mainland - other
    759
    Lithuania
    1611
    Madagascar
    
    
    763
    Oman
    1613
    Angola
    
    

    ISPs outside the Chinese mainland

    ISP ID
    ISP
    -1
    ISPs outside the Chinese mainland
    Note:
    Bandwidth or traffic consumption in logs is based on data returned at the application layer (HTTP protocol) and may be lower than that calculated at the TCP layer due to factors including TCP packet loss, three-way handshake, and retransmission.
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support