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 b3016d95c7f83..6bc6271dd6d5c 100644 --- a/x-pack/plugins/alerts/server/task_runner/task_runner.ts +++ b/x-pack/plugins/alerts/server/task_runner/task_runner.ts @@ -496,7 +496,7 @@ function generateNewAndRecoveredInstanceEvents( for (const id of recoveredAlertInstanceIds) { const { group: actionGroup, subgroup: actionSubgroup } = - originalAlertInstances[id].getLastScheduledActions() ?? {}; + recoveredAlertInstances[id].getLastScheduledActions() ?? {}; const message = `${params.alertLabel} instance '${id}' has recovered`; logInstanceEvent(id, EVENT_LOG_ACTIONS.recoveredInstance, message, actionGroup, actionSubgroup); }