Spaces method and path for this operation:
Refer to Spaces for more information.
Get a paginated list of prior configurations for a rule from change history. List rows are lean (diff summary only); use the detail route for full snapshots.
[Required authorization] Route required privileges: read_alerting-v2-rules.
Query parameters
-
Page number (1-based).
Minimum value is
1, maximum value is10000. Default value is1. -
Number of results per page.
Minimum value is
1, maximum value is100. Default value is20.
Responses
-
Returns a paginated list of rule change-history events.
-
Indicates an invalid schema or parameters.
-
Indicates the request was not authenticated.
-
Indicates the user does not have the required privileges to perform the request.
-
Indicates an unexpected server-side error.
-
Indicates the alerting engine is disabled by the
alerting:v2:enabledadvanced setting.
curl \
--request GET 'https://localhost:5601/api/alerting/v2/rules/{id}/history?page=1&per_page=20' \
--header "Authorization: $API_KEY"
{
"items": [
{
"action": "rule_update",
"actor": {
"name": "elastic",
"profileId": "u_profile_1"
},
"changes": {
"count": 1,
"summary": {
"metadata": {
"name": "Host CPU high"
}
}
},
"id": "0194f0c8-aaaa-7bbb-8ccc-ddddeeeeffff",
"isCurrent": true,
"metadata": {
"version": 2
},
"timestamp": "2026-01-15T12:05:00.000Z"
},
{
"action": "rule_create",
"actor": {
"name": "elastic",
"profileId": "u_profile_1"
},
"id": "0194f0c8-1111-7222-8333-444455556666",
"metadata": {
"version": 1
},
"timestamp": "2026-01-15T12:00:00.000Z"
}
],
"total": 2
}
{
"code": "BAD_REQUEST",
"details": {
"errors": {
"page": [
"page * per_page cannot exceed 10000."
]
}
},
"error": "Bad Request",
"message": "page * per_page cannot exceed 10000."
}
{
"code": "UNAUTHORIZED",
"error": "Unauthorized",
"message": "Authentication required to access this API."
}
{
"code": "FORBIDDEN",
"error": "Forbidden",
"message": "The current user does not have the required privileges for this request."
}
{
"code": "INTERNAL_SERVER_ERROR",
"error": "Internal Server Error",
"message": "An unexpected error occurred."
}
{
"code": "ALERTING_DISABLED",
"error": "Service Unavailable",
"message": "Alerting is disabled."
}
{
"code": "RULE_CHANGE_HISTORY_UNAVAILABLE",
"error": "Service Unavailable",
"message": "Rule change history is unavailable"
}