Is there a way to get raw logs of my CDN resource?
We do support raw logs of your own CDN resources to be delivered to your log server. The raw log feature is enabled on per user account basis (not per cdn resource).
There are 2 different types of delivery:
The HTTP log format (V8) for syslog is:
The STREAM log format for syslog is:
(b) SFTP and FTP:
The HTTP log format for sftp and ftp is in Combined Log Format:
$remote_addr - - [$time_local] "$request_method $request_uri HTTP/1.1" $http_status $bytes_sent "$http_referer" "$http_user_agent"
The STREAM log format for sftp and ftp is:
Our FTP raw log will be uploaded to client's FTP server every 10 minutes, and it will be removed from our server once the upload is successful. Our log server will store up to 50GB if the FTP is unreachable. However, for end user, our log server will only store up to 5GB only.
You can may insert the FTP IP address or the FTP hostname with subdirectory.
Raw log parameter:
Time taken for upstream to complete sending a http response from upstream to edge between the first bytes and the log write after the last bytes were sent to the edge server. It can contain multiple time taken and it is separated by commas and colons
Value of X-Cache HTTP response header field from upstream server
Time elapsed between the first bytes were read from the client and the log write after the last bytes were sent to the client
Round trip time ("ping") estimate of the tcp socket, in microseconds.
HTTP request header field that identifies the address of the webpage (i.e. the URI or IRI) that is linked to the resource being requested
Buyer (if any) that subscribe to the edge
To enable this feature (on a user basis), you can find the "raw log" settings at the "List CDN resource" page on CP.
If you would like to request for this feature on all the CDN resources of all the users created in CP, please send in a support ticket, and provide your log server info together with the user account which you wish to enable raw logs feature for:
(a) For FTP/SFTP , state your ftp hostname, username and password, and state it is FTP or SFTP
(b) For Syslog , state your syslog server hostname, port, TCP or UDP