Download web events as a file
Returns the web events matching the given query as a downloadable file in the requested format (txt, ndjson, yaml or csv).
A single export is capped at 5000 web events. A limit above that cap is rejected rather than silently clamped: the response is a client error naming the cap. When the query matches more than 5000 events, the export carries the first 5000 in result-set order; there is no CLI equivalent for web events, so a larger export has to be taken as several narrower queries.
The events are the same ones POST /api/web-events returns for the same query. Web-event retrieval does not sample, so no sampling has to be disabled for the file to be the query's whole result set.
The response is streamed as pages are retrieved and therefore carries no Content-Length. Because the response headers are committed before the first event is written, a failure partway through cannot be reported as a status code — it terminates the transfer instead. Clients MUST confirm the body was received completely before treating the download as a successful export.
Request
- Base URL: https://api.eu-west-1.aws.dash0.com
- URL: https://api.eu-west-1.aws.dash0.com/api/web-events/download
- Auth: none declared
Request body
Example request
{
"filter": [
{
"key": "service.name",
"operator": "is",
"value": "foo"
}
],
"timeRange": {
"from": "now-30m",
"to": "now"
}
}Response
The exported web events. The body's actual content type matches the requested format (text/plain for txt, application/x-ndjson for ndjson, application/yaml for yaml, text/csv for csv).
Changes
No recorded changes to this operation across all 1 revision of this API.