Search Cases
elastic_security.find_cases
ActionBusiness appsconnection required
Calls the Elastic Security API with the connection's credentials.
Search cases by text, status, severity, tags, assignee or date range.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Elastic Security
- Secret shape
- the Kibana API key ("ApiKey <encoded>" or the bare encoded value), or {"api_key": "…"}
- Config it needs
- kibana_url, space_id, owner
- Resolved by
- config.connection_id, else node.connection_id
Configuration
15 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
search An Elasticsearch simple_query_string matched against the search fields. | string | No | — | — | — |
search_fields Which fields the search text is matched against. | array | No | — | array of string | — |
status Return only cases in this lifecycle state. | string | No | — | one of "open", "in-progress", "closed" | — |
severity Return only cases of this severity. | string | No | — | one of "low", "medium", "high", "critical" | — |
tags Return only cases carrying these tags. | array | No | — | array of string | — |
assignees Return only cases assigned to these user profile uids, or none. | array | No | — | array of string | — |
reporters Return only cases opened by these usernames. | array | No | — | array of string | — |
category Return only cases in these categories. | array | No | — | array of string | — |
from_date Only cases created on or after this date, as a KQL date. | string | No | — | — | now-7d |
to_date Only cases created on or before this date, as a KQL date. | string | No | — | — | now |
sort_field Which field the results are ordered by. | string | No | createdAt | one of "createdAt", "updatedAt", "closedAt", "title", "category", "status", "severity" | — |
sort_order Order the results are returned in. | string | No | desc | one of "desc", "asc" | — |
page Page of results to return, counting from 1. | number | No | 1 | 1–10000 | — |
per_page How many results to return per page. Kibana caps this at 100. | number | No | 20 | 1–100 | — |
owner Applications whose cases to search. Defaults to the connection's owner. | array | No | — | array of string | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"from_date": "now-7d",
"page": 1,
"per_page": 20,
"sort_field": "createdAt",
"sort_order": "desc",
"to_date": "now"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
cases The cases on this page, each a full case object. | array | — |
count How many records this page actually returned. | number | — |
page The page number Kibana served. | number | — |
per_page The page size Kibana served. | number | — |
total How many records match the query in total. | number | — |
count_open_cases Open cases matching the query. | number | — |
count_in_progress_cases In-progress cases matching the query. | number | — |
count_closed_cases Closed cases matching the query. | number | — |
{
"cases": [],
"count": 0,
"count_closed_cases": 0,
"count_in_progress_cases": 0,
"count_open_cases": 0,
"page": 0,
"per_page": 0,
"total": 0
}See Search Cases run in a workflow.
In a technical demo we add the Elastic Security connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.