Multi-CDN Raw Logs Uploader

Multi-CDN Raw Logs Uploader

Raw logs are detailed access records that capture information about every connection between CDN edge nodes and your users. Each log entry includes data such as the connection date and time, user IP address, cache status, bytes transferred, and more, providing valuable insights into user behavior and service performance.

Leaseweb Multi-CDN platform automatically collects logs from all connected CDN providers, normalizes them into a unified format, and delivers them to your S3 bucket in near real-time. The log files are compressed in .gz format to minimize bandwidth and storage usage, and the data within is structured in JSON format for easy parsing and analysis.

Raw log data of the Multi-CDN Service is provided by Leaseweb to customers on a commercially reasonable efforts basis and only for informational and analytical purposes.

Leaseweb does not guarantee 100% accuracy or completeness of the raw log data.

The raw log data for a specific request might be delivered long after the request was actually processed, and, in exceptional cases, raw log data might not be delivered at all, meaning that the number of entries in the raw log data might not match the usage indicated on Leaseweb’s invoice and usage reports. Therefore, Billing and invoicing shall remain based on Leaseweb’s official usage and billing records only.

To enable raw log delivery, provide your S3 bucket details, then enter the details as described below:

Host nameHost name of your S3 bucket. e.g. myhostname.com
Access key IDThe access key ID associated with your Object Storage account. This credential is required to sign requests for authenticated access to your origin. Obtain this from your object storage provider (e.g., Leaseweb, AWS, etc.)
Secret access keyThe secret access key is associated with the access key ID above. It is used to generate secure signatures for authenticated requests. Keep this credential secure and never expose it publicly.
Example: Leaseweb, AWS, etc.
Bucket nameThe name of your object storage bucket. This identifies the specific container within your storage account where the assets are stored.
RegionThe region where your object storage bucket is hosted. This is required for signing requests correctly. You can find the region in your object storage provider’s console.
Example: us-west-2

Then click the “Upload Logs” button to activate the raw logs uploader.

To complete the setup, please ensure that our system has the necessary write permissions on your S3 bucket. This is required so we can deliver the raw logs directly to your storage. Without these permissions, log delivery may fail.

The directory structure in your bucket will be logs/<year>/<month>/<day>/<hour>/<log-id>.log.gz

Here are some main fields that you will see in your logs and that will be delivered to your bucket:

FieldTypeValues AllowedExample
argsString (nullable)Any query string or – if none-
browserStringBrowser nameChrome
bytes_sentIntegerAny non-negative integer163321560
cache_statusStringHIT, MISSHIT
customer_idStringNumeric string12345678
datetimeIntegerUnix timestamp in milliseconds1778065260000
deviceString (nullable)Device type or nullWindows
distribution_idStringUUID format161d1c24-5b4d-4e65-ac1f-de4968027ca4
distribution_typeStringMULTI_CDN_VOLUME, MULTI_CDN_PREMIUMMULTI_CDN_VOLUME
http_hostStringdomain nameexample.somedomain.com
http_refererString (nullable)URL or - if none-
http_user_agentStringUser agent stringMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
providerStringCDN provider namecachefly
regionStringAS: Asia,
EU: Europe,
NA: North America,
SA: South America,
AU: Australia/ New Zealand,
AF: Africa
AS
countryStringISO country codeCA
remote_addrStringIPv4 or IPv6 address113.22.23.19
request_methodStringGET, POST, PUT, DELETE, HEAD, OPTIONS, PATCHGET
sales_org_idStringNumeric string2000
schemeStringhttp, httpshttps
server_protocolStringHTTP/1.0, HTTP/1.1, HTTP/2.0, HTTP/3.0HTTP/2.0
statusIntegerHTTP status codes (100–599)200
uriStringRequest path/example/path