Reputation: 1109
I am trying to log Tracked Properties from Azure Logic App Standard to Azure Application Insights, however even after setting up all the Configurations the tracked properties are not showing up in the Application Insights Logs (traces). Below are some details about the Logic App (Standard) and the settings that I have enabled for the same.
{
"splitOn":"@triggerOutputs()?['body']",
"splitOnConfiguration":{
"correlation":{
"clientTrackingId":"@triggerOutputs()?['body']?['messageId']"
}
}
}
When I save the workflow, it gets saved successfully and even runs as expected but the Tracked Properties never gets logged in Application Insights / Log Analytics Workspace. Please be informed that the other logs for this workflow are getting logged and I am able to fetch them successfully by Querying traces in App Insights.
Similarly I tried adding a tracked property to a simple InitializeVariable action but it doesn't work there too.
{
"type":"InitializeVariable",
"inputs":{
"variables":[
{
"name":"Id",
"type":"string",
"value":"@{variables('QueueMessageBody')?['Details']?['Id']}"
}
]
},
"runAfter":{
"Initialize_Message_Body":[
"Succeeded"
]
},
"trackedProperties":{
"RequestId":"@{action()['inputs']?['variables'][0].value}"
}
}
Even when I change the value of the Tracked Property to some hard coded value, it still doesn't show up in the logs.
Below are the settings that I have enabled for my Logic App.
I tried to follow some of the work arounds available online (and listed below) but nothing seems to work.
Logic app tracked properties are not getting logged in log analytic workspace
Any help is highly appreciated.
Upvotes: 0
Views: 756
Reputation: 6484
"splitOnConfiguration": { "correlation": { "clientTrackingId": "@triggerOutputs()?['body']?['messageId']" } } ```
This configuration does work, you can check both the condition before splitOnConfiguration
and after adding it.
@triggerOutputs()?['body']?['messageId']
on Split-On Tracking Id, I got the below output.References-
SplitOn client tracking Id in logic apps - Atomic Scope.
Upvotes: 0