curl --request GET \
--url https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logsimport requests
url = "https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs")
.asString();require 'uri'
require 'net/http'
url = URI("https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"timestamp": "2023-11-07T05:31:56Z",
"pullZoneId": 123,
"requestId": "<string>",
"cacheStatus": "<string>",
"statusCode": 123,
"bytesSent": 123,
"edgeLocation": "<string>",
"scheme": "<string>",
"host": "<string>",
"path": "<string>",
"url": "<string>",
"remoteIp": "<string>",
"countryCode": "<string>",
"userAgent": "<string>",
"referer": "<string>",
"bodyBytesSent": 123,
"contentRange": "<string>",
"authorizationHeader": "<string>",
"ja4Fingerprint": "<string>",
"asn": 123,
"asnOrganization": "<string>"
}
],
"pagination": {
"offset": 123,
"limit": 123,
"returned": 123,
"hasMore": true
},
"query": {
"pullZoneId": 123,
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"order": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}Query CDN access logs for a pull zone.
Authenticate with either an Authorization bearer JWT or an AccessKey header.
Filter pushdown happens in ClickHouse where possible; country and free-text
search are applied in-process after fetch.
curl --request GET \
--url https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logsimport requests
url = "https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs")
.asString();require 'uri'
require 'net/http'
url = URI("https://logging.bunnycdn.com/v2/pullzones/{pullZoneId}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"timestamp": "2023-11-07T05:31:56Z",
"pullZoneId": 123,
"requestId": "<string>",
"cacheStatus": "<string>",
"statusCode": 123,
"bytesSent": 123,
"edgeLocation": "<string>",
"scheme": "<string>",
"host": "<string>",
"path": "<string>",
"url": "<string>",
"remoteIp": "<string>",
"countryCode": "<string>",
"userAgent": "<string>",
"referer": "<string>",
"bodyBytesSent": 123,
"contentRange": "<string>",
"authorizationHeader": "<string>",
"ja4Fingerprint": "<string>",
"asn": 123,
"asnOrganization": "<string>"
}
],
"pagination": {
"offset": 123,
"limit": 123,
"returned": 123,
"hasMore": true
},
"query": {
"pullZoneId": 123,
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"order": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}Query Parameters
Client IP address filter (IPv4 or IPv6). The match width adapts to the zone's IP anonymization setting so the filter can never reveal information beyond what the API returns: exact match when anonymization is disabled, /24 (IPv4) or /64 (IPv6) when last-octet anonymization is enabled, and ignored when full anonymization is enabled.
Free-text, case-insensitive token search. Tokens are space-separated; a row matches if ANY token appears in ANY of the searched columns: cache status, request ID, edge location, host, path, user agent, referer, and (for zones with extended logging) content range. Remote IP, country code, and the authorization header are not searched. use the dedicated filters for those, or note that the authorization header is encrypted at rest. Limited to 16 tokens of at most 128 characters each.