Warm tip: This article is reproduced from stackoverflow.com, please click
azure-logic-apps

How to retrieve "Runs Completed" count of more than one Logic App

发布于 2020-04-16 11:53:39

I have a bunch of Azure Logic Apps in my architecture and want to figure the cumulative sum of total runs completed in all the Logic Apps in my architecture. So far, I could only configure a single Logic App to the chart but I am wondering if there is a way to get a cumulative count in a single shot.

Any suggestions are much appreciated. Thanks.

Questioner
Nadeem Ahamed
Viewed
44
Hury Shen 2020-02-04 13:51

For this requirement, we can use Azure Log Analytics workspace.

  1. We need to create a Log Analytics workspace first. Please refer to this tutorial to create it.

  2. Then enable "Log Analytics" when you create the logic app and choose the Log Analytics workspace which we created above. enter image description here

  3. After that, we can see the running log(include the cumulative sum of total runs completed) in the Log Analytics workspace. We can see them by go to the Log Analytics workspace and click "Workspace summary".

enter image description here enter image description here

If you have already created many logic apps and do not want to create them again, you can follow the steps below:

  1. Also create the "Log Analytics workspace" as the first solution above.

  2. Then install Logic Apps Management solution in it.

  3. After that, go to your logic app and set the logs to send to Log Analytics.

By the way, the logs in Log Analytics workspace will be a little bit of a delay, so please wait a moment for the logs.(In my test, I wait for more than 25 mins).