GET /zones/{zone_id}/logs/received
The /received
api route allows customers to retrieve their edge HTTP logs. The basic access pattern is "give me all the logs for zone Z for minute M", where the minute M refers to the time records were received at Cloudflare's central data center. start
is inclusive, and end
is exclusive. Because of that, to get all data, at minutely cadence, starting at 10AM, the proper values are: start=2018-05-20T10:00:00Z&end=2018-05-20T10:01:00Z
, then start=2018-05-20T10:01:00Z&end=2018-05-20T10:02:00Z
and so on; the overlap will be handled properly.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
Name | Type | Required | Description |
---|---|---|---|
zone_id |
String | Yes |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
end |
Yes | ||
count |
Integer | No | |
sample |
Number | No | |
timestamps |
String | No |
Possible values:
Default value: "unixnano" |
fields |
String | No | |
start |
No |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.