curl --request POST \
--url https://api.eu.bronto.io/exports \
--header 'Content-Type: application/json' \
--header 'X-BRONTO-API-KEY: <api-key>' \
--data '
{
"search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"from_ts": 1709251200000,
"to_ts": 1711390455601,
"where": "ip=10.0.0.1"
}
}
'{
"export_id": "<string>",
"org_id": "<string>",
"progress": 123,
"status": "CREATED",
"bytes": 123,
"events": 123,
"location": "<string>",
"search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"from_ts": 1709251200000,
"to_ts": 1711390455601,
"from_expr": "log_id = '797655e0-bddd-4abe-97a4-e9e419a72baa' OR environment != 'production'",
"time_range": "Last 3 weeks",
"where": "ip=10.0.0.1"
},
"created_at": 123,
"modified_at": 123,
"failure_detail": "<string>"
}{
"code": 400,
"type": "Bad Request",
"correlation_id": "95c6a974e3ab01209b6b0dfedb1b16c5",
"details": "Validation failed: 'name' field is required and cannot be empty"
}{
"code": 404,
"type": "Not Found",
"correlation_id": "605f832bcfe44a1081441691c8d42253",
"details": "Resource not found."
}{
"code": 429,
"type": "Too Many Requests",
"correlation_id": "53909ed43c544531b7a555e295960437",
"details": "Rate limit exceeded. Maximum 100 requests are allowed within a 5-minute window."
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}exports
Create a new export
Creates an export from either explicit log ids in from or a dataset selector in from_expr. When from_expr is supplied, it is resolved at creation time and the resulting log ids are persisted in search_details.from for export processing.
POST
/
exports
curl --request POST \
--url https://api.eu.bronto.io/exports \
--header 'Content-Type: application/json' \
--header 'X-BRONTO-API-KEY: <api-key>' \
--data '
{
"search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"from_ts": 1709251200000,
"to_ts": 1711390455601,
"where": "ip=10.0.0.1"
}
}
'{
"export_id": "<string>",
"org_id": "<string>",
"progress": 123,
"status": "CREATED",
"bytes": 123,
"events": 123,
"location": "<string>",
"search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"from_ts": 1709251200000,
"to_ts": 1711390455601,
"from_expr": "log_id = '797655e0-bddd-4abe-97a4-e9e419a72baa' OR environment != 'production'",
"time_range": "Last 3 weeks",
"where": "ip=10.0.0.1"
},
"created_at": 123,
"modified_at": 123,
"failure_detail": "<string>"
}{
"code": 400,
"type": "Bad Request",
"correlation_id": "95c6a974e3ab01209b6b0dfedb1b16c5",
"details": "Validation failed: 'name' field is required and cannot be empty"
}{
"code": 404,
"type": "Not Found",
"correlation_id": "605f832bcfe44a1081441691c8d42253",
"details": "Resource not found."
}{
"code": 429,
"type": "Too Many Requests",
"correlation_id": "53909ed43c544531b7a555e295960437",
"details": "Rate limit exceeded. Maximum 100 requests are allowed within a 5-minute window."
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
Response
Export created successfully
The unique identifier for the export.
The ID of the organization associated with the export.
The progress percentage of the export.
The current status of the export.
Available options:
CREATED, IN_PROGRESS, COMPLETE The size of the export in bytes.
The number of events in the export.
The location where the export is stored.
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
The timestamp when the export was created.
The timestamp when the export was last modified.
Provides the reason for the failure if the export did not complete successfully.
