question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What's the best way to create Alerts for failed workflows (Logic App Standard)?

See original GitHub issue

We’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:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

4reactions
djuan-apexcommented, Mar 15, 2023

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.

3reactions
rohithahcommented, Nov 16, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I configure an alert for when a logic app workflow ...
Another way is to raise alerts based on Log Analytics Workspace but that would require me to write custom logs in case of...
Read more >
Alerts on Failed Azure Logic Apps
Create Alert · Open the Azure portal and navigate to the Logic App for which an alert needs to be specified. · A...
Read more >
Configuring Azure Logic App Failure Alerts To Stay Ahead
You will learn how to holistically monitor Azure Logic Apps failure alert that helps you resolve issues and increase productivity.
Read more >
The simple way to add alerts to Logic App Workflows | Adaptiv
The easiest way to do this is with an Azure Alert[1]. Alerts help you detect and address issues before users notice them by...
Read more >
Alerting Through Azure Logic Apps
Steps To Send Alert without using Azure Logic Apps · 1. Search Azure Logic App and click on add. · 2. Logic apps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found