Skip to content

Commit 0d0d6be

Browse files
Merge pull request #265720 from yossi-y/main
Added time range options
2 parents 920abdb + 3f0c0c7 commit 0d0d6be

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

articles/connectors/connectors-azure-monitor-logs.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,12 @@ This how-to guide describes how to build a [Consumption logic app workflow](../l
3333

3434
For technical information about this connector's operations, see the [connector's reference documentation](/connectors/azuremonitorlogs/).
3535

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. |
4542

4643
## Limitations
4744

@@ -66,12 +63,6 @@ For technical information about this connector's operations, see the [connector'
6663

6764
- 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).
6865

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-
7566
- 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.
7667

7768
## Add an Azure Monitor Logs action
@@ -110,6 +101,10 @@ For technical information about this connector's operations, see the [connector'
110101

111102
1. In the **Query** box, enter the following Kusto query to retrieve the specified log data from the following sources:
112103

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+
113108
* Log Analytics workspace
114109

115110
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'
137132
| evaluate autocluster()
138133
```
139134
135+
1. For **Time Range**, select **Set in query**.
136+
140137
> [!NOTE]
141138
>
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
145143
146144
1. For **Chart Type**, select **Html Table**.
147145

0 commit comments

Comments
 (0)