diff --git a/x-pack/plugins/alerts/server/task_runner/task_runner.ts b/x-pack/plugins/alerts/server/task_runner/task_runner.ts index 0c486dad070ef..d4143d233776a 100644 --- a/x-pack/plugins/alerts/server/task_runner/task_runner.ts +++ b/x-pack/plugins/alerts/server/task_runner/task_runner.ts @@ -491,7 +491,7 @@ function generateNewAndRecoveredInstanceEvents( const newIds = without(currentAlertInstanceIds, ...originalAlertInstanceIds); for (const id of recoveredAlertInstanceIds) { - const actionGroup = originalAlertInstances[id].getLastScheduledActions()?.group; + const actionGroup = recoveredAlertInstances[id].getLastScheduledActions()?.group; const message = `${params.alertLabel} instance '${id}' has recovered`; logInstanceEvent(id, EVENT_LOG_ACTIONS.recoveredInstance, message, actionGroup); }