bunny.net CDN raw log format explained

bunny.net CDN provides a simple log format that is easy to parse automatically. This page explains the format of the log file. Each request will be logged as a separate line in the file. 

Example log line:

HIT|200|1507167062421|412|390||-|https://bunnycdn.b-cdn.net/assets/landingpage/images/cdn-video-preview-from-a-blue-moon.m4v|WA|Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36|322b688bd63fb63f2babe9de30a5d262|DE

Log Format:

Each field is separated by the | (pipe) character and with the following format:


Field details:

Field Name Format Details
Cache Status String, possible values are "HIT" or "MISS The cache status of the request. If HIT, the request was served locally from the edge node cache. If MISS, the file was not on the edge node that served the request and the files were requested from an upstream. 
Status Code Integer The HTTP status code that was returned by the server. We have more details on the HTTP status codes that the CDN can return here
Request Timestamp Big Integer The UTC UNIX timestamp of when the request was completed and the file was served to the user.
Remote IP String The IP of the remote client that received the request. If you have any GDPR anonymisation enabled under the logging tab in the dashboard, then this will be applied to the IP you see here (if the IP ends in .0, it's probably been anonymised)
Referer URL String The referer URL that was sent from the client when the file was requested. This is often used in parallel with our referral protection to ensure only authorised hostnames send requests to the CDN. 
URL String The URL of the file that was served, including any query strings.
Edge Location Code String The acronym code indicating which of our pops served your file. Often can be mapped to a city code/country code. 
User Agent String The User-Agent header sent by the client requesting the URL. Useful for identifying what sort of client/device sent the request.
Request ID String The unique ID that identified the specific request. Useful to prevent duplicate request processing and used for internal request handling inside the CDN.
Country Code String The country code where the request came from according to our GeoIP database.

Table of Contents

Was this article helpful?
15 out of 17 found this helpful