Spaces method and path for this operation:
Refer to Spaces for more information.
Get the full detail for a single rule change-history event, including the rule configuration snapshot.
[Required authorization] Route required privileges: read_alerting-v2-rules.
Path parameters
-
The identifier for the rule.
Minimum length is
1, maximum length is150. -
The change-history event identifier (
event.id).Minimum length is
1, maximum length is150.
Responses
-
Returns the requested rule change-history event.
-
Indicates the request failed schema validation.
-
Indicates the request was not authenticated.
-
Indicates the user does not have the required privileges to perform the request.
-
Indicates a change-history event with the given ID does not exist.
-
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/{eventId}' \
--header "Authorization: $API_KEY"
{
"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
},
"snapshot": {
"created_at": "2026-01-15T12:00:00.000Z",
"created_by": "elastic",
"enabled": true,
"grouping": {
"fields": [
"host.name"
]
},
"id": "rule-1",
"kind": "alert",
"metadata": {
"description": "Alerts when average CPU usage exceeds a threshold.",
"name": "Host CPU critical",
"tags": [
"production",
"infra"
],
"version": 2
},
"query": {
"breach": {
"query": "FROM metrics-* | WHERE host.cpu.usage > 0.9 | STATS avg_cpu = AVG(host.cpu.usage) BY host.name"
},
"format": "standalone"
},
"recovery_strategy": "no_breach",
"schedule": {
"every": "1m",
"lookback": "5m"
},
"state_transition": {
"pending_count": 1,
"recovering_count": 1
},
"time_field": "@timestamp",
"updated_at": "2026-01-15T12:00:00.000Z",
"updated_by": "elastic"
},
"timestamp": "2026-01-15T12:05:00.000Z"
}
{
"code": "BAD_REQUEST",
"details": {
"errors": {
"errors": [],
"properties": {
"eventId": {
"errors": [
"Too small: expected string to have >=1 characters"
]
}
}
}
},
"error": "Bad Request",
"message": "eventId: Too small: expected string to have >=1 characters"
}
{
"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": "RULE_CHANGE_NOT_FOUND",
"details": {
"event_id": "missing-event",
"rule_id": "rule-1"
},
"error": "Not Found",
"message": "Rule change with event id \"missing-event\" not found for rule \"rule-1\""
}
{
"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"
}