diff --git a/x-pack/plugins/alerting/server/lib/get_execution_log_aggregation.ts b/x-pack/plugins/alerting/server/lib/get_execution_log_aggregation.ts index 5b7f87faf41fd..d9894579b50af 100644 --- a/x-pack/plugins/alerting/server/lib/get_execution_log_aggregation.ts +++ b/x-pack/plugins/alerting/server/lib/get_execution_log_aggregation.ts @@ -424,7 +424,7 @@ export function getExecutionLogAggregation({ export function getExecutionLogRuntimeMappings(): estypes.MappingRuntimeFields { return { - 'kibana.alerting.outcome': { + [OUTCOME_FIELD]: { type: 'keyword', script: { source: `