From 72edbbba05f060198b6b5d4de2a146aa7009b825 Mon Sep 17 00:00:00 2001 From: Kristina Date: Thu, 3 Apr 2025 09:40:43 -0500 Subject: [PATCH] Correlations: Handle undefined field in logfmt (#103372) --- public/app/features/correlations/transformations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/correlations/transformations.ts b/public/app/features/correlations/transformations.ts index 11320ad8a10..b98163c07ed 100644 --- a/public/app/features/correlations/transformations.ts +++ b/public/app/features/correlations/transformations.ts @@ -22,7 +22,7 @@ export const getTransformationVars = ( transformVal[transformation.mapValue || fieldName] = match[1] || match[0]; } } - } else if (transformation.type === SupportedTransformationType.Logfmt) { + } else if (transformation.type === SupportedTransformationType.Logfmt && fieldValue !== undefined) { transformVal = logfmt.parse(fieldValue); }