Skip to content

Commit a4006a7

Browse files
authored
Merge pull request #102164 from ecfan/monitor
Update screenshots and other content for monitoring
2 parents e2a5be6 + 990812f commit a4006a7

File tree

160 files changed

+1133
-1540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+1133
-1540
lines changed

.openpublishing.redirection.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6486,6 +6486,31 @@
64866486
"redirect_url": "/azure/logic-apps/logic-apps-enterprise-integration-as2",
64876487
"redirect_document_id": false
64886488
},
6489+
{
6490+
"source_path": "articles/logic-apps/logic-apps-monitor-your-logic-apps.md",
6491+
"redirect_url": "/azure/logic-apps/monitor-logic-apps",
6492+
"redirect_document_id": false
6493+
},
6494+
{
6495+
"source_path": "articles/logic-apps/logic-apps-monitor-your-logic-apps-oms.md",
6496+
"redirect_url": "/azure/logic-apps/monitor-logic-apps-log-analytics",
6497+
"redirect_document_id": false
6498+
},
6499+
{
6500+
"source_path": "articles/logic-apps/logic-apps-monitor-b2b-message.md",
6501+
"redirect_url": "/azure/logic-apps/monitor-b2b-messages-log-analytics",
6502+
"redirect_document_id": false
6503+
},
6504+
{
6505+
"source_path": "articles/logic-apps/logic-apps-track-b2b-messages-omsportal.md",
6506+
"redirect_url": "/azure/logic-apps/monitor-b2b-messages-log-analytics",
6507+
"redirect_document_id": false
6508+
},
6509+
{
6510+
"source_path": "articles/logic-apps/logic-apps-track-b2b-messages-omsportal-query-filter-control-number.md",
6511+
"redirect_url": "/azure/logic-apps/create-monitoring-tracking-queries",
6512+
"redirect_document_id": false
6513+
},
64896514
{
64906515
"source_path": "articles/logic-apps/logic-apps-using-sap-connector-old.md",
64916516
"redirect_url": "/azure/logic-apps/logic-apps-using-sap-connector",
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: View and create queries for logic apps in Azure Monitor logs
3+
description: View and create queries in Azure Monitor logs for Azure Logic Apps
4+
services: logic-apps
5+
ms.suite: integration
6+
ms.reviewer: divswa, logicappspm
7+
ms.topic: article
8+
ms.date: 01/30/2020
9+
---
10+
11+
# View and create queries for monitoring and tracking in Azure Monitor logs for Azure Logic Apps
12+
13+
You can view the underlying queries that produce the results from [Azure Monitor logs](../log-analytics/log-analytics-overview.md) and create queries that filter the results based your specific criteria. For example, you can find messages based on a specific interchange control number. Queries use the [Kusto query language](https://aka.ms/LogAnalyticsLanguageReference), which you can edit if you want to view different results. For more information, see [Azure Monitor log queries](../azure-monitor/log-query/query-language.md).
14+
15+
## Prerequisites
16+
17+
* A Log Analytics workspace. If you don't have a Log Analytics workspace, learn [how to create a Log Analytics workspace](../azure-monitor/learn/quick-create-workspace.md).
18+
19+
* A logic app that's set up with Azure Monitor logging and sends that information to a Log Analytics workspace. Learn [how to set up Azure Monitor logs for your logic app](../logic-apps/monitor-logic-apps.md).
20+
21+
* If you're using an integration account, make sure that you've set up the account with Azure Monitor logging to send that information to a Log Analytics workspace. Learn how to [set up Azure Monitor logging for your integration account](../logic-apps/monitor-b2b-messages-log-analytics.md).
22+
23+
## View queries behind results
24+
25+
To view or edit the query that produces the results in your workspace summary, follow these steps:
26+
27+
1. On any results page, at the bottom, select **See All**.
28+
29+
![See all results](./media/create-monitoring-tracking-queries/logic-app-see-all.png)
30+
31+
The Logs page opens and shows the query behind the previous results page.
32+
33+
![Logs page - query view](./media/create-monitoring-tracking-queries/view-query-behind-results.png)
34+
35+
1. On the **Logs** page, you can select these options:
36+
37+
* To view the query results as a table, under the query editor, select **Table**.
38+
39+
* To change the query, update the query string and select **Run** to view the results in the table.
40+
41+
## Create your own query
42+
43+
To find or filter results based on specific properties or values, you can create your own query by starting from an empty query or use an existing query. For more information, see [Get started with log queries in Azure Monitor](../azure-monitor/log-query/get-started-queries.md).
44+
45+
1. In the [Azure portal](https://portal.azure.com), find and select your Log Analytics workspace.
46+
47+
1. On your workspace menu, under **General**, select **Logs**.
48+
49+
1. Start from an empty query or any available existing queries.
50+
51+
* To check whether any existing queries are available, on the query toolbar, select either **Samples queries** > **History**, which shows queries from previous query runs, or select **Query explorer**, which shows prebuilt queries.
52+
53+
For example, the Logic Apps B2B solution provides these prebuilt queries:
54+
55+
![Start with "Logic Apps B2B" solution prebuilt queries](./media/create-monitoring-tracking-queries/b2b-prebuilt-queries.png)
56+
57+
* To start from an empty query, in the query editor, start typing the [Kusto query language](../azure-monitor/log-query/query-language.md) for your query.
58+
59+
![Start with empty query](./media/create-monitoring-tracking-queries/create-query-from-blank.png)
60+
61+
## Next steps
62+
63+
* [AS2 tracking schemas](../logic-apps/logic-apps-track-integration-account-as2-tracking-schemas.md)
64+
* [X12 tracking schemas](../logic-apps/logic-apps-track-integration-account-x12-tracking-schema.md)
65+
* [Custom tracking schemas](../logic-apps/logic-apps-track-integration-account-custom-tracking-schema.md)

articles/logic-apps/logic-apps-create-logic-apps-from-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If you don't have an Azure subscription,
5151
| **Subscription** | *your-Azure-subscription-name* | Select the Azure subscription that you want to use. |
5252
| **Resource group** | *your-Azure-resource-group-name* | Create or select an [Azure resource group](../azure-resource-manager/management/overview.md) for this logic app and to organize all resources associated with this app. |
5353
| **Location** | *your-Azure-datacenter-region* | Select the datacenter region for deploying your logic app, for example, West US. |
54-
| **Log Analytics** | **Off** (default) or **On** | Turn on [diagnostic logging](../logic-apps/logic-apps-monitor-your-logic-apps.md#turn-on-diagnostics-logging-for-your-logic-app) for your logic app through [Azure Monitor logs](../log-analytics/log-analytics-overview.md). Requires that you already have a Log Analytics workspace. |
54+
| **Log Analytics** | **Off** (default) or **On** | Set up [diagnostic logging](../logic-apps/monitor-logic-apps-log-analytics.md) for your logic app by using [Azure Monitor logs](../log-analytics/log-analytics-overview.md). Requires that you already have a Log Analytics workspace. |
5555
||||
5656

5757
4. When you're ready, select **Pin to dashboard**.

articles/logic-apps/logic-apps-deploy-azure-resource-manager-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ If you use an Azure Active Directory (Azure AD) [service principal](../active-di
123123
## Next steps
124124

125125
> [!div class="nextstepaction"]
126-
> [Monitor logic apps](../logic-apps/logic-apps-monitor-your-logic-apps.md)
126+
> [Monitor logic apps](../logic-apps/monitor-logic-apps.md)

articles/logic-apps/logic-apps-diagnosing-failures.md

Lines changed: 34 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -5,149 +5,79 @@ services: logic-apps
55
ms.suite: integration
66
ms.reviewer: klam, logicappspm
77
ms.topic: article
8-
ms.date: 10/15/2017
8+
ms.date: 01/31/2020
99
---
1010

1111
# Troubleshoot and diagnose workflow failures in Azure Logic Apps
1212

13-
Your logic app generates information that can help you
14-
diagnose and debug problems in your app.
15-
You can diagnose a logic app by reviewing
16-
each step in the workflow through the Azure portal.
17-
Or you can add some steps to a workflow for runtime debugging.
13+
Your logic app generates information that can help you diagnose and debug problems in your app. You can diagnose a logic app by reviewing each step in the workflow through the Azure portal. Or, you can add some steps to a workflow for runtime debugging.
1814

19-
## Review trigger history
15+
<a name="check-trigger-history"></a>
2016

21-
Each logic app starts with trigger. If the trigger doesn't fire,
22-
first check the trigger history. This history lists all the
23-
trigger attempts that your logic app made and details about
24-
inputs and outputs for each trigger attempt.
17+
## Check trigger history
2518

26-
1. To check whether the trigger fired,
27-
on your logic app menu, choose **Overview**. Under
28-
**Trigger History**, review the trigger's status.
19+
Each logic app run starts with a trigger attempt, so if the trigger doesn't fire, follow these steps:
2920

30-
> [!TIP]
31-
> If you don't see the logic app menu,
32-
> try returning to the Azure dashboard,
33-
> and reopen your logic app.
21+
1. Check the trigger's status by [checking the trigger history](../logic-apps/monitor-logic-apps.md#review-trigger-history). To view more information about the trigger attempt, select that trigger event, for example:
3422

35-
![Review trigger history](./media/logic-apps-diagnosing-failures/logic-app-trigger-history-overview.png)
23+
![View trigger status and history](./media/logic-apps-diagnosing-failures/logic-app-trigger-history.png)
3624

37-
> [!TIP]
38-
> * If you don't find the data that you expect,
39-
> try selecting **Refresh** on the toolbar.
40-
> * If the list shows many trigger attempts,
41-
> and you can't find the entry you want,
42-
> try filtering the list.
43-
44-
Here are the possible statuses for a trigger attempt:
45-
46-
| Status | Description |
47-
| ------ | ----------- |
48-
| **Succeeded** | The trigger checked the endpoint and found available data. Usually, a "Fired" status also appears alongside this status. If not, the trigger definition might have a condition or `SplitOn` command that wasn't met. <p>This status can apply to a manual trigger, recurrence trigger, or polling trigger. A trigger can run successfully, but the run itself might still fail when the actions generate unhandled errors. |
49-
| **Skipped** | The trigger checked the endpoint but found no data. |
50-
| **Failed** | An error occurred. To review any generated error messages for a failed trigger, select that trigger attempt and choose **Outputs**. For example, you might find inputs that aren't valid. |
51-
|||
52-
53-
You might have multiple trigger entries with the same date and time,
54-
which happens when your logic app finds multiple items.
55-
Each time the trigger fires, the Logic Apps engine creates
56-
a logic app instance to run your workflow. By default,
57-
each instance runs in parallel so that no workflow
58-
has to wait before starting a run.
25+
1. Check the trigger's inputs to confirm that they appear as you expect. Under **Inputs link**, select the link, which shows the **Inputs** pane.
5926

60-
> [!TIP]
61-
> You can recheck the trigger without waiting for the next recurrence.
62-
> On the overview toolbar, choose **Run trigger**,
63-
> and select the trigger, which forces a check.
64-
> Or, select **Run** on Logic Apps Designer toolbar.
27+
Trigger inputs include the data that the trigger expects and requires to start the workflow. Reviewing these inputs can help you determine whether the trigger inputs are correct and whether the condition was met so that the workflow can continue.
6528

66-
3. To examine the details for a trigger attempt,
67-
under **Trigger History**, select that trigger attempt.
29+
For example, the `feedUrl` property here has an incorrect RSS feed value:
6830

69-
![Select a trigger attempt](./media/logic-apps-diagnosing-failures/logic-app-trigger-history.png)
31+
![Review trigger inputs for errors](./media/logic-apps-diagnosing-failures/review-trigger-inputs-for-errors.png)
7032

71-
4. Review the inputs and any outputs that the trigger generated.
72-
Trigger outputs show the data that came from the trigger.
73-
These outputs can help you determine whether all properties
74-
returned as expected.
33+
1. Check the triggers outputs, if any, to confirm that they appear as you expect. Under **Outputs link**, select the link, which shows the **Outputs** pane.
7534

76-
> [!NOTE]
77-
> If you find any content that you don't understand,
78-
> learn how Azure Logic Apps
79-
> [handles different content types](../logic-apps/logic-apps-content-type.md).
35+
Trigger outputs include the data that the trigger passes to the next step in your workflow. Reviewing these outputs can help you determine whether the correct or expected values passed on to the next step in your workflow, for example:
8036

81-
![Trigger outputs](./media/logic-apps-diagnosing-failures/trigger-outputs.png)
37+
![Review trigger outputs for errors](./media/logic-apps-diagnosing-failures/review-trigger-outputs-for-errors.png)
8238

83-
## Review run history
39+
> [!TIP]
40+
> If you find any content that you don't recognize, learn more about
41+
> [different content types](../logic-apps/logic-apps-content-type.md) in Azure Logic Apps.
8442
85-
Each fired trigger starts a workflow run.
86-
You can review what happened during that run,
87-
including the status for each step in the workflow,
88-
plus the inputs and outputs for each step.
43+
<a name="check-runs-history"></a>
8944

90-
1. On the logic app menu, choose **Overview**.
91-
Under **Runs history**, review the run for the fired trigger.
45+
## Check runs history
9246

93-
> [!TIP]
94-
> If you don't see the logic app menu,
95-
> try returning to the Azure dashboard,
96-
> and reopen your logic app.
47+
Each time that the trigger fires for an item or event, the Logic Apps engine creates and runs a separate workflow instance for each item or event. If a run fails, follow these steps to review what happened during that run, including the status for each step in the workflow plus the inputs and outputs for each step.
9748

98-
![Review runs history](./media/logic-apps-diagnosing-failures/logic-app-runs-history-overview.png)
49+
1. Check the workflow's run status by [checking the runs history](../logic-apps/monitor-logic-apps.md#review-runs-history). To view more information about a failed run, including all the steps in that run in their status, select the failed run.
9950

100-
> [!TIP]
101-
> * If you don't find the data that you expect,
102-
> try selecting **Refresh** on the toolbar.
103-
> * If the list shows many runs,
104-
> and you can't find the entry you want,
105-
> try filtering the list.
51+
![View run history and select failed run](./media/logic-apps-diagnosing-failures/logic-app-runs-history.png)
10652

107-
Here are the possible statuses for a run:
53+
1. After all the steps in the run appear, expand the first failed step.
10854

109-
| Status | Description |
110-
| ------ | ----------- |
111-
| **Succeeded** | All actions succeeded. <p>If any failures happened in a specific action, a following action in the workflow handled that failure. |
112-
| **Failed** | At least one action failed, and no later actions in the workflow were set up to handle the failure. |
113-
| **Cancelled** | The workflow was running but received a cancel request. |
114-
| **Running** | The workflow is currently running. <p>This status might happen for throttled workflows, or due to the current pricing plan. For more information, see the [action limits on the pricing page](https://azure.microsoft.com/pricing/details/logic-apps/). If you set up [diagnostics logging](../logic-apps/logic-apps-monitor-your-logic-apps.md), you can also get information about any throttle events that happen. |
115-
|||
55+
![Expand first failed step](./media/logic-apps-diagnosing-failures/logic-app-run-pane.png)
11656

117-
2. Review the details for each step in a specific run.
118-
Under **Runs history**, select the run that you want to examine.
57+
1. Check the failed step's inputs to confirm whether they appear as you expect.
11958

120-
![Review runs history](./media/logic-apps-diagnosing-failures/logic-app-run-history.png)
59+
1. Review the details for each step in a specific run. Under **Runs history**, select the run that you want to examine.
12160

122-
Whether the run itself succeeded or failed,
123-
the Run Details view shows each step and whether
124-
they succeeded or failed.
61+
![Review runs history](./media/logic-apps-diagnosing-failures/logic-app-runs-history.png)
12562

12663
![View details for a logic app run](./media/logic-apps-diagnosing-failures/logic-app-run-details.png)
12764

128-
3. To examine the inputs, outputs, and any error messages for a specific step, choose that step so that the shape expands and shows the details. For example:
65+
1. To examine the inputs, outputs, and any error messages for a specific step, choose that step so that the shape expands and shows the details. For example:
12966

13067
![View step details](./media/logic-apps-diagnosing-failures/logic-app-run-details-expanded.png)
13168

13269
## Perform runtime debugging
13370

134-
To help with debugging, you can add diagnostic steps to a workflow,
135-
along with reviewing the trigger and runs history. For example,
136-
you can add steps that use the [Webhook Tester](https://webhook.site/)
137-
service so that you can inspect HTTP requests and determine
138-
their exact size, shape, and format.
71+
To help with debugging, you can add diagnostic steps to a logic app workflow, along with reviewing the trigger and runs history. For example, you can add steps that use the [Webhook Tester](https://webhook.site/) service so that you can inspect HTTP requests and determine their exact size, shape, and format.
13972

140-
1. Visit [Webhook Tester](https://webhook.site/) and copy the unique URL created
73+
1. Go to the [Webhook Tester](https://webhook.site/) site and copy the generated unique URL.
14174

142-
2. In your logic app, add an HTTP POST action with the
143-
body content that you want to test,
144-
for example, an expression or another step output.
75+
1. In your logic app, add an HTTP POST action plus the body content that you want to test, for example, an expression or another step output.
14576

146-
3. Paste the URL for your Webhook Tester into the HTTP POST action.
77+
1. Paste your URL from Webhook Tester into the HTTP POST action.
14778

148-
4. To review how a request is formed when generated from the Logic Apps engine,
149-
run the logic app, and see Webhook Tester for details.
79+
1. To review how a request is formed when generated from the Logic Apps engine, run the logic app, and revisit the Webhook Tester site for more details.
15080

15181
## Next steps
15282

153-
[Monitor your logic app](../logic-apps/logic-apps-monitor-your-logic-apps.md)
83+
* [Monitor your logic app](../logic-apps/monitor-logic-apps.md)

articles/logic-apps/logic-apps-enterprise-integration-b2b-business-continuity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,5 +318,5 @@ direct traffic to the secondary region for business continuity.
318318

319319
## Next steps
320320

321-
[Monitor B2B messages](logic-apps-monitor-b2b-message.md)
321+
[Monitor B2B messages with Azure Monitor logs](../logic-apps/monitor-b2b-messages-log-analytics.md)
322322

0 commit comments

Comments
 (0)