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.

FieldTypeRequiredDefaultConstraintsExample
search
An Elasticsearch simple_query_string matched against the search fields.
stringNo———
search_fields
Which fields the search text is matched against.
arrayNo—array of string—
status
Return only cases in this lifecycle state.
stringNo—one of "open", "in-progress", "closed"—
severity
Return only cases of this severity.
stringNo—one of "low", "medium", "high", "critical"—
tags
Return only cases carrying these tags.
arrayNo—array of string—
assignees
Return only cases assigned to these user profile uids, or none.
arrayNo—array of string—
reporters
Return only cases opened by these usernames.
arrayNo—array of string—
category
Return only cases in these categories.
arrayNo—array of string—
from_date
Only cases created on or after this date, as a KQL date.
stringNo——now-7d
to_date
Only cases created on or before this date, as a KQL date.
stringNo——now
sort_field
Which field the results are ordered by.
stringNocreatedAtone of "createdAt", "updatedAt", "closedAt", "title", "category", "status", "severity"—
sort_order
Order the results are returned in.
stringNodescone of "desc", "asc"—
page
Page of results to return, counting from 1.
numberNo11–10000—
per_page
How many results to return per page. Kibana caps this at 100.
numberNo201–100—
owner
Applications whose cases to search. Defaults to the connection's owner.
arrayNo—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

FieldTypeExample
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.