Create exception container
editCreate exception container
editCreates an exception container.
Console supports only Elasticsearch APIs. Console doesn’t allow interactions with Kibana APIs. You must use curl
or another HTTP tool instead. For more information, refer to Run Elasticsearch API requests.
An exception container groups exception items
and can be associated with rules. When an exception item’s query evaluates to
true
, rules do not issue alerts even when the rule’s other criteria are met.
You can assign detection rules with multiple exception containers. For more information, see Create rule and Update rule.
All exception items added to the same container are evaluated using
OR
logic. That is, if any of the items in a container evaluate to true
, the
exception prevents the rule from generating an alert. Likewise, OR
logic is
used for evaluating exceptions when more than one exception container is
assigned to a rule. To use the AND
operator, you can define multiple clauses
(entries
) in a single exception item.
Request URL
editPOST <kibana host>:<port>/api/exception_lists
Request body
editA JSON object with these fields:
Name | Type | Description | Required |
---|---|---|---|
|
String |
Describes the exception container. |
Yes |
|
String |
Unique identifier. |
No, automatically created when it is not provided. |
|
Object |
Placeholder for metadata about the list container. |
No |
|
String |
The exception container’s name. |
Yes |
|
String |
Determines whether the exception container is available in all Kibana spaces or just the space in which it is created, where:
|
No, defaults to |
|
String[] |
String array containing words and phrases to help categorize exception containers. |
No |
|
String |
The type of exception, which must be one of these:
|
Yes |
Example requests
editCreates an exception container for holding trusted Linux process exception items:
POST api/exception_lists { "description": "Excludes Linux trusted processes", "name": "Linux process exceptions", "list_id": "trusted-linux-processes", "type": "detection", "namespace_type": "single", "tags": [ "linux", "processes" ] }
Response code
edit-
200
- Indicates a successful call.
Response payload
editThe exception container object with a unique ID.
{ "_tags": [], "created_at": "2020-07-13T09:33:46.187Z", "created_by": "elastic", "description": "Excludes Linux trusted processes", "id": "f320c070-c4eb-11ea-80bb-11861bae2798", "list_id": "trusted-linux-processes", "name": "Linux process exceptions", "namespace_type": "single", "tags": [ "linux", "processes" ], "tie_breaker_id": "2c08d5a5-2ecc-4d5a-acfb-0a367f25b3f3", "type": "detection", "updated_at": "2020-07-13T09:33:46.359Z", "updated_by": "elastic" }
These values are required to associate the exception container with detection rules: