KQL query gives different output in Dev and prod environment

Administrator Deepak Shaw 0 Reputation points
2025-03-13T03:10:52.0266667+00:00

Hi,

I'm having identical test for logic apps and connected app insights in two sperate subscription (DEV and PROD)

I'm running below KQL in both envirnaments but getting no response from PROD Azure subscription. In short : KQL query gives different output in Dev and prod environments.

My query looks like:

let Failed = view () { 
    traces
    | where operation_Name contains "wf-sl-hm-" or operation_Name contains "wf-sf-hm-"
    | where message contains "Workflow run ends" 
    | extend d = parse_json(customDimensions)
    | where d.status contains "Failed"
    | summarize Count=sum(itemCount), impactedUsers=dcount(user_Id) by operation_Name
};
let Succeeded = view () {
    traces
    | where operation_Name contains "wf-sl-hm-" or operation_Name contains "wf-sf-hm-"
    | where message contains "Workflow run ends" 
    | extend d = parse_json(customDimensions)
    | where d.status contains "Succeeded"
    | summarize Count=sum(itemCount), impactedUsers=dcount(user_Id) by operation_Name
}; 
union withsource="HM-Snapshot" Failed, Succeeded

Can someone please advice what is the issue and fix.

Thanks

Deepak Shaw

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,389 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.