- Logging API v2 - recommended. Structured JSON, rich filtering, pagination, and per-field search.
- Logging API v1 - legacy. Streams a raw pipe-delimited file for a given day; preserved for existing integrations.
Privacy & GDPR
IP addresses are anonymized by default. To enable full IP logging, sign the Data Processing Agreement (DPA) in your account settings, then disable anonymization in your Pull Zone logging settings. When anonymization is enabled, anonymized IPs are returned by the API in one of two forms depending on your Pull Zone setting:- Remove last octet - IPv4 is masked to a
/24(e.g.163.172.53.0); IPv6 is masked to a/64(e.g.2001:7d0:700d:db04::). - Drop all - IPv4 becomes
0.0.0.0and IPv6 becomes::.
remoteIp adapts to the same mask width, so the filter can never reveal information beyond what the response shows.
Logging API v2
from and the range to - from must fall within that window.
Example
Query parameters
Country code, the encrypted-at-rest authorization header, and the raw client IP are
not matched by the free-text
search parameter. Use country, remoteIp, and the
dedicated header filters for those.Response
200 OK returns a JSON envelope with the page of entries, pagination state, and an
echoed query summary:
Log entry fields
Extended logging fields
When extended logging is enabled for the Pull Zone (contact support), entries also include:
Null fields are omitted from the JSON response.
Cache status values
Pagination
The response setspagination.hasMore to true when more results are available
beyond the current page. To fetch the next page, repeat the request with
offset advanced by limit:
Error responses
Errors return a structured JSON envelope:Logging API v1 (Legacy)
Download raw log files from the logging API:Query parameters
Log format
Each request is stored as a pipe-separated line:Pipe (
|) characters in user-controllable fields (Referer, URL, User-Agent,
Content-Range, Authorization) are stripped from the v1 output to keep the
delimiter unambiguous. If you need the original byte sequence, use v2.Extended logging
Extended logging adds three additional fields (contact support to enable):HTTP status codes
These codes apply to logged responses served by the CDN edge and are surfaced via both API versions.2XX Success
3XX Redirection
4XX Client Errors
A 499 status code appears in logs when a client closes the connection before
the server finishes responding. This commonly occurs due to mobile network
interruptions, ad blockers, or users navigating away. It’s normal and doesn’t
indicate a server problem.