You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/connectors/connectors-azure-monitor-logs.md
+16-18Lines changed: 16 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,15 +33,12 @@ This how-to guide describes how to build a [Consumption logic app workflow](../l
33
33
34
34
For technical information about this connector's operations, see the [connector's reference documentation](/connectors/azuremonitorlogs/).
35
35
36
-
> [!NOTE]
37
-
>
38
-
> Both of the following actions can run a log query against a Log Analytics workspace or
39
-
> Application Insights resource. The difference exists in the way that data is returned.
40
-
>
41
-
> | Action | Description |
42
-
> |--------|-------------|
43
-
> |[Run query and list results](/connectors/azuremonitorlogs/#run-query-and-list-results)| Returns each row as its own object. Use this action when you want to work with each row separately in the rest of the workflow. The action is typically followed by a [For each action](../logic-apps/logic-apps-control-flow-loops.md). |
44
-
> |[Run query and visualize results](/connectors/azuremonitorlogs/#run-query-and-visualize-results)| Returns a JPG file that depicts the query result set. This action lets you use the result set in the rest of the workflow by sending the results in an email, for example. The action only returns a JPG file if the query returns results. |
36
+
Both of the following actions can run a log query against a Log Analytics workspace or Application Insights resource. The difference exists in the way that data is returned.
37
+
38
+
| Action | Description |
39
+
|--------|-------------|
40
+
|[Run query and list results](/connectors/azuremonitorlogs/#run-query-and-list-results)| Returns each row as its own object. Use this action when you want to work with each row separately in the rest of the workflow. The action is typically followed by a [For each action](../logic-apps/logic-apps-control-flow-loops.md). |
41
+
|[Run query and visualize results](/connectors/azuremonitorlogs/#run-query-and-visualize-results)| Returns a JPG file that depicts the query result set. This action lets you use the result set in the rest of the workflow by sending the results in an email, for example. The action only returns a JPG file if the query returns results. |
45
42
46
43
## Limitations
47
44
@@ -66,12 +63,6 @@ For technical information about this connector's operations, see the [connector'
66
63
67
64
- The [Consumption logic app workflow](../logic-apps/logic-apps-overview.md#resource-environment-differences) from where you want to access your Log Analytics workspace or Application Insights resource. To use an Azure Monitor Logs action, start your workflow with any trigger. This guide uses the [**Recurrence** trigger](connectors-native-recurrence.md).
68
65
69
-
> [!NOTE]
70
-
>
71
-
> Although you can turn on the Log Analytics setting in a logic app resource to collect information about runtime data
72
-
> and events as described in the how-to guide [Set up Azure Monitor logs and collect diagnostics data for Azure Logic Apps](../logic-apps/monitor-workflows-collect-diagnostic-data.md), this setting isn't required
73
-
> for you to use the Azure Monitor Logs connector.
74
-
75
66
- An Office 365 Outlook account to complete the example in this guide. Otherwise, you can use any email provider that has an available connector in Azure Logic Apps.
76
67
77
68
## Add an Azure Monitor Logs action
@@ -110,6 +101,10 @@ For technical information about this connector's operations, see the [connector'
110
101
111
102
1. In the **Query** box, enter the following Kusto query to retrieve the specified log data from the following sources:
112
103
104
+
> [!NOTE]
105
+
>
106
+
> When you create your own queries, make sure they work correctly in Log Analytics before you add them to your Azure Monitor Logs action.
107
+
113
108
* Log Analytics workspace
114
109
115
110
The following example query selects errors that occurred within the last day, reports their total number, and sorts them in ascending order.
@@ -137,11 +132,14 @@ For technical information about this connector's operations, see the [connector'
137
132
| evaluate autocluster()
138
133
```
139
134
135
+
1. For **Time Range**, select **Set in query**.
136
+
140
137
> [!NOTE]
141
138
>
142
-
> When you create your own queries, make sure they work correctly in Log Analytics before you add them to your Azure Monitor Logs action.
143
-
144
-
1. For **Time Range**, select **Set in query**.
139
+
> There are three options for **Time Range**
140
+
> - **Exact** -- start-time and end-time can be provided dynamically
141
+
> - **Relative** -- set relative value such as last hour, last 12 hour, etc.
142
+
> - **Set in query** -- applies when TimeGenerated filter is included in query
0 commit comments