Raw access logs
For all CDN services we do provide detailed raw access logs downloadable via FTP, FTPS, SFTP and RSYNC.
Creating a raw logs service
To create a raw logs service you need the following.
- CDN service
- Logs storage
- Logs services quota
Create a CDN service
Create a logs storage
Please refer to Creating, accessing and upgrading a logs storage for more details.
Upgrade logs services quota
Raw logs services are paid add-ons. Please refer to the pricing page for actual prices. Logs service quota determines for how many CDN services you can enable raw logs.
To upgrade or renew your logs services quota please visit the Billing/Add-Ons page.
Create a logs service
To create a raw logs service please visit the Reports/Logs page and fill in your desired CDN service and a logs storage as in the picture below.
You can set a keep days parameter of your logs services. By default it is set to 31 days and it means that the service will keep your logs for the last 31 days. When it is set to 0 then the logs service will use all available logs storage space and then it will rotate your logs within this available space.
Format for static CDN services
The format for static CDN services (CDN Static and CDN Static Push) is the Combined Log Format.
192.168.0.1 - - [10/Oct/2000:13:55:36 -0700] "GET /image.jpeg HTTP/1.1" 200 2326 "http://http-referer.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0"
Format for streaming CDN services
The format for streaming CDN services (CDN Video, CDN Video Push and CDN Live) is the following.
W2<TAB>service-identifier<TAB>x-severity<TAB>x-category<TAB>x-event<TAB>date<TAB>time<TAB>c-client-id<TAB> c-ip<TAB>c-port<TAB>cs-bytes<TAB>sc-bytes<TAB>x-duration<TAB>x-sname<TAB>x-stream-id<TAB> x-spos<TAB>sc-stream-bytes<TAB>cs-stream-bytes<TAB>x-file-size<TAB>x-file-length<TAB> x-ctx<TAB>x-comment<TAB>x-sname-query<TAB>W2
W2<TAB>290684511.r.cdnsun.net<TAB>INFO<TAB>stream<TAB>create<TAB>2014-10-05<TAB>08:56:04<TAB>556727814<TAB> 188.8.131.52<TAB>-<TAB>3465<TAB>3454<TAB>10.16<TAB>rtmp://mycompany.com:1935/_definst_/stream<TAB> 1<TAB>-<TAB>0<TAB>0<TAB>-<TAB>-<TAB>rtmp://mycompany.com:1935/_definst_/stream<TAB>-<TAB>-<TAB>W2
- Logs are collected every hour.
- The string W2 at the beginning and at the end of the logs corresponds to the format version.
- Logs of streaming CDN services are for their Service Identifiers only (even if you access your services via Service Domains).