Overview
This endpoint retrieves alerts from UTMStack’s Elasticsearch index. It supports advanced filtering, pagination, and sorting, allowing analysts to query alerts within specific time ranges or by defined conditions.Authorization Required: All requests must include a valid Bearer Token obtained from the authentication endpoint.
Endpoint Details
POST /api/elasticsearch/search
Method: POST
Content-Type: application/json
Authentication: Bearer Token required
Response: Array of alert objects
Content-Type: application/json
Authentication: Bearer Token required
Response: Array of alert objects
Query Parameters
Request Body
The request body is a JSON array of filter definitions used to refine the search.Filter Structure
Example Filter Payload
Request & Response Examples
Additional Code Examples
Response Details
Returns a JSON array of alert objects. Each alert includes metadata, source/destination information, and contextual details.Complete Response Structure
- Success Response
- Empty Response
- Error Response
Response Fields
Filter Operators
Basic Operators
Basic Operators
- IS: Exact match
- IS_NOT: Not equal to
- CONTAINS: Contains substring
- STARTS_WITH: Begins with value
- ENDS_WITH: Ends with value
Numeric Operators
Numeric Operators
- GREATER_THAN: Greater than value
- LESS_THAN: Less than value
- GREATER_EQUAL: Greater than or equal to
- LESS_EQUAL: Less than or equal to
Range Operators
Range Operators
- IS_BETWEEN: Between two values (requires array)
- IS_IN: Value in list (requires array)
- IS_NOT_IN: Value not in list (requires array)
Common Filter Examples
Filter by Severity
Filter by Time Range (Last 24 hours)
Filter by Multiple Statuses
Filter by Data Source
Status Codes
Pagination
The API supports pagination through thepage and size parameters:
- page: Current page number (1-based)
- size: Number of results per page
- top: Maximum total results to consider