docs
ucdn
User Guide
Log Download

Log Download

Go to the log download page to download related log information.

The CDN log is currently kept for 3 months and can be pulled through the API as well. If you need to keep the log longer, it's recommended that you download and save the log as soon as possible.

Logs can be downloaded with 5-minute, 1 hour, or daily granularity. If you need to download the log with daily granularity for the day, it is only generated after 8am the next day.

The default log format is as follows:

FieldNameExampleUsage Example
1Date and TimeLog recording time[2022-02-18 00:15:00]
2Client IPClient IP120.32.40.179
3"Request Method URL Protocol Version"Http request"GET /ucdntest.mp4 HTTP/1.1"
4Hit StatusHit Status, specific display refer to note1TCP_HIT
5Response CodeHttp status code200
6Bytes SentAll bytes sent in this request including http header674
7Response LatencyResponse latency (ms)81
8HostHttp hostconsole.surfercloud.com
9RefererHttp refererhttp://console.surfercloud.com/ (opens in a new tab)
10UsernameHttp username usually "-" if not exists-
11Back-to-source method/hostBack-to-source method/Back-to-source host reserved now all NONE/-NONE/-
12ServerIPServer ip that processed this request27.155.93.38
13Source IPOrigin Station IP122.228.243.88
14Source Station Response CodeOrigin Station http response code0
15Client Request End MarkerClient Request End Marker(0 means normal termination. 1 mean client disconnected early)0
16Source Server Request End MarkerSource Server Request End Marker currently are all 00
17User-AgentHttp user-agent (Small files end here)"Mozilla/5.0+AppleWebKit/537.36+(KHTML,+like+Gecko)+Language/zh_CN"
18Request Start Processing TimeRequest Start Processing Time Unix Timestamp1495186500
19Front-end flowFront-end flow Used to mark a unique identifier for an http request, similar to id1513283749
20RangeHttp rangebytes=0-1
21Bytes SentBytes sent (not including http header)2
22File SizeFile Size8459952
23Bytes Hit from CacheBytes hit from cache674
24Bytes Merged Back to SourceBytes merged back to source0
25Internal Error CodeInternal Error Code (For development debugging)0
26Status at the EndRequest End Marker (For development debugging)50
27Bytes Retrieved from ufileBytes retrieved from ufile currently all are 00
28Cache PortCache Port (For development debugging)40080
29Transmission ProtocolHTTP
30Request hostThe actual requested host, if it's a wildcard domain, here is the host that client request actually

Log Example

[2020-01-01 18:57:36] 36.x.x.x "GET /xx.mp4?time=1592287214&signature=xxxxxxxxxxxxx HTTP/1.1" TCP_HIT 200 12558573 1949 xxxx.com "" - NONE/- 36.x.x.x 36.x.x.x 0 1 0 "stagefright/1.2+(Linux;Android+8.1.0)" 1615892254 1806241317 - 12557915 12557915 12558573 0 0 50 0 40080 https xxxx.com

Note1

Hit Status ValueDescription
ERR_READ_ERRORRead Error
ERR_READ_TIMEOUTAccess Timeout
TCP_HITHit cache
TCP_IMS_HITClient initiated If-condition request, cache hit
TCP_IMS_MISSClient initiated If-condition request, cache miss
TCP_MEM_HITHit memory cache
TCP_MISSMiss
TCP_REFRESH_HITCache time expired, hit after checking back to source
TCP_REFRESH_MISSCache time expired, miss after checking back to source
TCP_SWAPFAIL_MISSSource access caused by disk hit fail
Note: Large files currently only have TCP_MISS,TCP_HIT

Related API

APIDescription
GetUcdnDomainLogV2Get domain 5-minute log
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved