Log Format

bunny.net provides a simple access log format. A request log is stored as a new line in the log file, for example:

HIT|200|1507167062421|412|390|163.172.53.229|-|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

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

<cache-status>|<status-code>|<timestamp>|<bytes-sent>|<pull-zone-id>|<remote-ip>|<referer-url>|<url>|<edge-location>|<user-agent>|<unique-request-id>|<country-code>

Log fields Definitions

Cache Status (String, Possible values: HIT/MISS)

The cache status of the request. If HIT, the request was served locally from the edge node cache.

Status Code (Integer)

The HTTP status code that was returned by the server.

Request Timestamp (Big Integer)

The UTC UNIX timestamp of when the request was completed.

Bytes Sent (Integer)

The total number of bytes that were sent to the client.

Pull Zone ID (Big Integer)

The ID of the pull zone that served the request.

Remote IP (String)

The IP of the remote client that received the request. If log anonymization is enabled, the last block is replaced by a 0,

Referer Url (String)

The referer URL that was sent by the client when the file was requested.

Url (String)

The URL of the request that was served.

Edge Location Code (String)

The acronym zone code indicating which of our pops served the request.

User Agent (String)

The User-Agent header sent by the client requesting the URL.

Unique Request ID (String)

The unique ID that identified the specific request. Useful to prevent duplicate request processing.

Country Code (String)

The two-letter country code (ISO-3166) where the request came from, based on the clients IP address.


Did this page help you?