For AI agents: a documentation index is available at https://www.elastic.co/docs/api/doc/kibana/llms.txt.
Markdown versions of each page are available by sending an Accept: text/markdown header,
or by appending .md to the page URL.
List rule executions
Generally available; added in 9.6.0
At least 1 but not more than 50 elements. Minimum length of each is 1, maximum length of each is 150.
search
string
Free-text search. Matches rule name, description or rule ID (case-insensitive). Combined with rule_ids using AND.
Minimum length is 1, maximum length is 256.
outcomes
array[string]
Outcome filter.
At least 1 but not more than 2 elements. Values are success or failure.
from
string(date-time)
Inclusive ISO datetime lower bound on event.start. Defaults to 24 hours before to, or before the request when to is omitted. Set it to see older executions.
Maximum length is 64.
to
string(date-time)
Inclusive ISO datetime upper bound on event.start.
Maximum length is 64.
sort_field
stringRequired
Sort field. Defaults to started_at.
Values are started_at or duration_ms. Default value is started_at.
sort_order
stringRequired
Sort direction.
Values are asc or desc. Default value is desc.
page
integerRequired
Page number.
Minimum value is 1, maximum value is 10000. Default value is 1.
per_page
integerRequired
Number of results per page.
Minimum value is 1, maximum value is 100. Default value is 20.
Responses
200
application/json
Returns a paginated list of rule execution events.
True when more than 500 rules matched the search. Only the executions of the first 500 matching rules are returned, so the results are incomplete. Narrow the search to see the rest.
rule_count
integerRequired
The number of rules matching the search. This count is an estimate: results above 10,000 may be reported as 10,000.
Minimum value is 0, maximum value is 9007199254740991.
total
integerRequired
The number of rule executions matching the query. This count is an estimate: results above 10,000 may be reported as 10,000.
Minimum value is 0, maximum value is 9007199254740991.
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
details
object
Optional structured context whose keys depend on code. Identifier keys such as rule_id, action_policy_id and group_hash are stable, permanent public identifiers. On a 400 request-validation error, details.source (params, query, or body) names the failing part and is the only guaranteed key. The sibling details.errors may change. Do not branch on it.
Additional properties are allowed.
error
stringRequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
message
stringRequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
details
object
Optional structured context whose keys depend on code. Identifier keys such as rule_id, action_policy_id and group_hash are stable, permanent public identifiers. On a 400 request-validation error, details.source (params, query, or body) names the failing part and is the only guaranteed key. The sibling details.errors may change. Do not branch on it.
Additional properties are allowed.
error
stringRequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
message
stringRequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
403
application/json
Indicates the user does not have the required privileges to perform the request.
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
details
object
Optional structured context whose keys depend on code. Identifier keys such as rule_id, action_policy_id and group_hash are stable, permanent public identifiers. On a 400 request-validation error, details.source (params, query, or body) names the failing part and is the only guaranteed key. The sibling details.errors may change. Do not branch on it.
Additional properties are allowed.
error
stringRequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
message
stringRequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
details
object
Optional structured context whose keys depend on code. Identifier keys such as rule_id, action_policy_id and group_hash are stable, permanent public identifiers. On a 400 request-validation error, details.source (params, query, or body) names the failing part and is the only guaranteed key. The sibling details.errors may change. Do not branch on it.
Additional properties are allowed.
error
stringRequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
message
stringRequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
503
application/json
Indicates the alerting engine is disabled by the alerting:v2:enabled advanced setting.
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
details
object
Optional structured context whose keys depend on code. Identifier keys such as rule_id, action_policy_id and group_hash are stable, permanent public identifiers. On a 400 request-validation error, details.source (params, query, or body) names the failing part and is the only guaranteed key. The sibling details.errors may change. Do not branch on it.
Additional properties are allowed.
error
stringRequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
message
stringRequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
GET
/api/alerting/v2/execution_history/rules
curl \
--request GET 'https://localhost:5601/api/alerting/v2/execution_history/rules?sort_field=started_at&sort_order=desc&page=1&per_page=20' \
--header "Authorization: $API_KEY"