What's the best way to create Alerts for failed workflows (Logic App Standard)?
See original GitHub issueWe’re currently looking for a possibility to create Alerts that notify us when a specific amount of workflows fail. Since there’s no build-in Alert (like for consumption-based Logic Apps) we’re currently using Kusto query:
traces | extend RunId_s = tostring(parse_json(tostring(parse_json(tostring(customDimensions.prop__properties)).resource)).runId) | extend workflowName = tostring(parse_json(tostring(parse_json(tostring(customDimensions.prop__properties)).resource)).workflowName) | extend endState = customDimensions.prop__status | where message startswith "Workflow run end" or message startswith "Workflow run disp" | where endState == "Failed" | sort by timestamp | distinct RunId_s
But honestly, it feels unsatisfying to create such a query for such a simple task plus not all workflows have a trace with the last failed action - which is weird but another topic.
Does anybody have some better solution?
AB#16036543
Issue Analytics
- State:
- Created a year ago
- Comments:12
Top GitHub Comments
I have been anonymously lurking on this thread for a couple months awaiting an announcement for this. I see it closed again, but not sure if there was a final solution. I don’t see any add’l or new features in the LA tool so assuming this is not happening and we should continue with the custom query action for Standard types vs built-in for Consumption types. If I missed something, please update as I could use the functionality.
The support for Logic Apps metrics is coming by the end of the year. This will include metrics for runs, actions and trigger level events that you can use for monitoring and alerting.