Get insights and debugging data for logic apps by using Azure Monitor logs

To monitor and get richer debugging details about your logic apps, turn on Azure Monitor logs when you create your logic app. Azure Monitor logs provide diagnostics logging and monitoring for your logic apps when you install the Logic Apps Management solution in the Azure portal. This solution also provides aggregated information for your logic app runs with specific details such as status, execution time, resubmission status, and correlation IDs. This article shows how to turn on Azure Monitor logs so you can view runtime events and data for your logic app runs.

This topic shows how to set up Azure Monitor logs when you create your logic app. To turn on Azure Monitor logs for existing logic apps, follow these steps to turn on diagnostic logging and send logic app runtime data to Azure Monitor logs.

Note

This page previously described steps for how to perform these tasks with the Microsoft Operations Management Suite (OMS), which retired in January 2019, and replaces those steps with Azure Monitor logs, which replaced the term Log Analytics. Log data is still stored in a Log Analytics workspace and is still collected and analyzed by the same Log Analytics service. For more information, see Azure Monitor terminology changes.

Prerequisites

Before you start, you need a Log Analytics workspace. Learn how to create a Log Analytics workspace.

Turn on logging for new logic apps

  1. In Azure portal, create your logic app. From the main Azure menu, select Create a resource > Integration > Logic App.

    Create new logic app

  2. Under Logic App, follow these steps:

    1. Provide a name for your logic app and select your Azure subscription.

    2. Create or select an Azure resource group. Select the location for your logic app.

    3. Under Log Analytics, select On.

    4. From the Log Analytics workspace list, select the workspace where you want to send the data from your logic app runs.

      Provide logic app information

      After you finish this step, Azure creates your logic app, which is now associated with your Log Analytics workspace. Also, this step automatically installs the Logic Apps Management solution in your workspace.

    5. When you're done, select Create.

  3. To view your logic app runs, continue with these steps.

Install Logic Apps Management solution

If you already set up Azure Monitor logs when you created your logic app, skip this step. You already have the Logic Apps Management solution installed.

  1. In the Azure portal, select All services. In the search box, find "log analytics workspaces", and select Log Analytics workspaces.

    Select "Log Analytics workspaces"

  2. Under Log Analytics workspaces, select your workspace.

    Select your Log Analytics workspace

  3. On the Overview pane, under Get started with Log Analytics > Configure monitoring solutions, select View solutions.

    Select "View solutions"

  4. Under Overview, select Add.

    Select "Add"

  5. After the Marketplace opens, in the search box, enter "logic apps management", and select Logic Apps Management.

    Select "Logic Apps Management"

  6. On the solution description pane, select Create.

    Select "Create" for "Logic Apps Management"

  7. Review and confirm the Log Analytics workspace where you want to install the solution, and select Create again.

    Select "Create" for "Logic Apps Management"

    After Azure deploys the solution to the Azure resource group that contains your Log Analytics workspace, the solution appears on your workspace's summary pane.

    Workspace summary pane

View logic app run information

After your logic app runs, you can view the status and count for those runs on the Logic Apps Management tile.

  1. Go to your Log Analytics workspace, and select Workspace summary > Logic Apps Management.

    Logic app run status and count

    Here, your logic app runs are grouped by name or by execution status. This page also shows details about failures in actions or triggers for the logic app runs.

    Status summary for your logic app runs

  2. 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:

    View logic app runs and status

    This page has advanced options:

    • Tracked properties column: For a logic app where you set up tracked properties, which are grouped by actions, you can view those properties from this column. To view these tracked properties, select View. To search the tracked properties, use the column filter.

      View tracked properties for a logic app

      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 apps runs that failed, succeeded, or are still running. Select the check boxes for the runs that you want to resubmit, and then select Resubmit.

      Resubmit logic app runs

  3. To filter your results, you can perform both client-side and server-side filtering.

    • Client-side filter: For each column, select the filters that you want, for example:

      Example column filters

    • Server-side filter: To select 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.

      Change the time window

  4. To view all the actions and their details for a specific run, select the row for a logic app run.

    Here is an example that shows all the actions and triggers for a specific logic app run:

    View actions for a logic app run

  5. On any results page, to view the query behind the results or to see all the results, select See All, which opens the Logs page.

    See all results

    On the Logs page, you can choose these options:

    • To view the query results in a table, select Table.

    • Queries use Kusto query language, which you can edit if you want to view different results. To change the query, update the query string and select Run to view the results in the table.

      Log Analytics - query view

Next steps