Get CDN logs for up to 3 days starting today. You can filter logs using query parameters by client IP, CDN resource, date, path and etc.
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Start date and time of the requested time period (ISO 8601/RFC 3339 format, UTC.) Difference between "from" and "to" cannot exceed 6 hours. Examples: * &from=2021-06-14T00:00:00Z * &from=2021-06-14T00:00:00.000Z
End date and time of the requested time period (ISO 8601/RFC 3339 format, UTC.) Difference between "from" and "to" cannot exceed 6 hours. Examples: * &to=2021-06-15T00:00:00Z * &to=2021-06-15T00:00:00.000Z
Number of log records to skip starting from the beginning of the requested period.
Maximum number of log records in the response.
1 <= x <= 1000
Field to which the filter is applied and the operator to be applied. In case of multiple values specified, the filters will be combined using the AND operator. Possible values:
not_in
. Multiple values for 'in' & 'not_in
' are separated by a comma.client_ip
- IP address of the client who sent the request.
Operations: eq, ne, in, not_in
.not_in
. Multiple values for 'in' & 'not_in
' are separated by a comma.not_in
. Multiple values for 'in' & 'not_in
' are separated by a comma.not_in
, contains. For the 'contains' operation, the minimum length of the value is 3 characters.resource_id
- ID of the requested CDN resource. Possible values: integer.
Operations: gt, gte, lt, lte, eq, ne, in, not_in
. Multiple values for 'in' & 'not_in
' are separated with comma.cache_status
- Caching status. Possible values: 'MISS', 'BYPASS', 'EXPIRED', 'STALE', 'PENDING', 'UPDATING', 'REVALIDATED', 'HIT', '-'.
Operations: eq, ne, in, not_in
. Multiple values for 'in' & 'not_in
' are separated by a comma.not_in
, contains.
To filter the CDN logs by 2xx status codes, use:
* &status__gte
=200&status__lt
=300Sorting rules. Possible values:
client_ip
- IP address of the client who sent the request.resource_id
- ID of the requested CDN resource.cache_status
- Caching status.A comma-separated list of returned fields. Supported fields are presented in the responses section. Example: * &fields=timestamp,path,status
Successful.
The response is of type object
.