Overview
This endpoint allows you to export alert data in CSV format. You can apply filters, select specific fields, and control the format of the exported data. This is useful for creating reports, data analysis, and integrating with external business intelligence tools.Authorization Required: Include a valid Bearer Token in the Authorization header.
Endpoint Details
POST /api/elasticsearch/alerts/export/csv
Method: POST
Content-Type: application/json
Authentication: Bearer Token required
Response: CSV file download or CSV data
Content-Type: application/json
Authentication: Bearer Token required
Response: CSV file download or CSV data
Request Body
array
Filters to apply when selecting alerts for export
array
required
List of field names to include in the CSV export
integer
default:"0"
Starting position for pagination (0-based)
integer
default:"10000"
Maximum number of records to export
string
default:"@timestamp"
Field to sort results by
string
default:"desc"
Sort direction: “asc” or “desc”
boolean
default:"true"
Whether to include column headers in the CSV
string
default:"yyyy-MM-dd HH:mm:ss"
Format for date/time fields in the CSV
string
default:","
Field separator character (comma, semicolon, tab)
string
Optional filename for the CSV export
JSON Schema
Request & Response Examples
Additional Code Examples
Response Details
Successful Response
- Standard Export
- Custom Separator
- No Headers
Status Codes
OK
CSV data successfully exported
Bad Request
Invalid field names, malformed filters, or invalid parameters
Unauthorized
Missing or invalid Bearer token
Payload Too Large
Export size exceeds maximum allowed limit
Internal Server Error
Internal server error during export
Common Use Cases
Security Incident Reports
Compliance Reports
Data Analysis Export
Available Fields
Core Alert Fields
Core Alert Fields
Essential fields for most exports:
@timestamp- Alert timestampname- Alert name/titleseverity- Severity level (1-5)status- Alert status codecategory- Alert categorydescription- Alert descriptiondataSource- Source system
Network Fields
Network Fields
Network-related alert fields:
sourceIp- Source IP addressdestIp- Destination IP addresssourcePort- Source portdestPort- Destination portprotocol- Network protocolbytes- Bytes transferredpackets- Packet count
Security Fields
Security Fields
Security-focused fields:
tactic- MITRE ATT&CK tactictechnique- MITRE ATT&CK techniqueuser- Associated usernameprocess- Process informationfile- File pathhash- File/process hashsignature- Detection signature
Management Fields
Management Fields
Alert management fields:
assignedTo- Assigned analysttags- Applied tagsnotes- Investigation notesdisposition- Final dispositioncreatedAt- Creation timeupdatedAt- Last update time