From e32c33cd7d559d477e02ad4cab1ed21173c39055 Mon Sep 17 00:00:00 2001 From: Knut Haug Date: Mon, 11 Nov 2024 10:47:21 +0100 Subject: [PATCH] replaced traces.message with customDimensions.MessageTemplate for improved grouping --- .azure/modules/functionApp/slackNotifier.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure/modules/functionApp/slackNotifier.bicep b/.azure/modules/functionApp/slackNotifier.bicep index ec5b24d46..8c5aee77e 100644 --- a/.azure/modules/functionApp/slackNotifier.bicep +++ b/.azure/modules/functionApp/slackNotifier.bicep @@ -168,7 +168,7 @@ var query = ''' Environment = tostring(customDimensions.AspNetCoreEnvironment), Type = itemType, problemId, - message, + tostring(customDimensions.MessageTemplate), severityLevel | extend SeverityLevel = case( severityLevel == 0, "Verbose", @@ -178,7 +178,7 @@ var query = ''' severityLevel == 4, "Critical", tostring(severityLevel) ) - | extend Details = coalesce(message, problemId) + | extend Details = coalesce(customDimensions_MessageTemplate, problemId) | extend Details = replace_string(Details, "Digdir.Domain.Dialogporten.", "") | project Environment, Type, SeverityLevel, Count, Details '''