Monitor and get insights about logic app runs with Log Analytics
For monitoring and richer debugging information, you can turn on Log Analytics at the same time when you create a logic app. Log Analytics provides diagnostics logging and monitoring for your logic app runs through the Azure portal. When you add the Logic Apps Management solution, you get aggregated status for your logic app runs and specific details like status, execution time, resubmission status, and correlation IDs.
This article shows how to turn on Log Analytics so you can view runtime events and data for your logic app run.
To monitor your existing logic apps, follow these steps to turn on diagnostic logging and send logic app runtime data to Log Analytics.
Before you start, you need to have a Log Analytics workspace. Learn how to create a Log Analytics workspace.
Turn on diagnostics logging when creating logic apps
In Azure portal, create a logic app. Choose Create a resource > Enterprise Integration > Logic App.
In the Create logic app page, perform these tasks as shown:
- Provide a name for your logic app and select your Azure subscription.
- Create or select an Azure resource group.
- Set Log Analytics to On. Select the Log Analytics workspace where you want to send data for your logic app runs.
When you're ready, choose Pin to dashboard > Create.
After you finish this step, Azure creates your logic app, which is now associated with your Log Analytics workspace. Also, this step also automatically installs the Logic Apps Management solution in your workspace.
To view your logic app runs, continue with these steps.
Install the Logic Apps Management solution
If you already turned on Log Analytics when you created your logic app, skip this step. You already have the Logic Apps Management solution installed.
In the Azure portal, choose More Services. Search for "log analytics" as your filter, and choose Log Analytics as shown:
Under Log Analytics, find and select your Log Analytics workspace.
Under Management, choose Overview.
On the Overview page, choose Add to open the Management Solutions tile.
Scroll through the list of Management Solutions, choose Logic Apps Management solution, and choose Create to install it to the Overview page.
View your logic app runs in your Log Analytics workspace
To view the count and status for your logic app runs, go to the overview page for your Log Analytics workspace. Review the details on the Logic Apps Management tile.
To view a summary with more details about your logic app runs, choose the Logic Apps Management tile.
Here, your logic app runs are grouped by name or by execution status. You can also see details about the failures in actions or triggers for the logic app runs.
To view all the runs for a specific logic app or status, select the row for a logic app or a status.
Here is an example that shows all the runs for a specific logic app:
There are two advanced options on this page:
Tracked properties: This column shows tracked properties, which are grouped by actions, for the logic app. To view the tracked properties, choose View. You can search the tracked properties by using the column filter.
Any newly added tracked properties might take 10-15 minutes before they appear first time. Learn how to add tracked properties to your logic app.
Resubmit: You can resubmit one or more logic app runs that failed, succeeded, or are still running. Select the checkboxes for the runs that you want to resubmit, and choose Resubmit.
To filter these results, you can perform both client-side and server-side filtering.
Client-side filter: For each column, choose the filters that you want. Here are some examples:
Server-side filter: To choose a specific time window or to limit the number of runs that appear, use the scope control at the top of the page. By default, only 1,000 records appear at a time.
To view all the actions and their details for a specific run, select a row for a logic app run.
Here is an example that shows all the actions for a specific logic app run:
On any results page, to view the query behind the results or to see all results, choose See All, which opens the Log Search page.
On the Log Search page,
- To view the query results in a table, choose Table.
To change the query, you can edit the query string in the search bar. For a better experience, choose Advanced Analytics.
Here on the Azure Log Analytics page, you can update queries and view the results from the table. This query uses Kusto query language, which you can edit if you want to view different results.