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/azure-monitor/logs/logs-export-logic-app.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Export data from a Log Analytics workspace to a Storage account by using Logic Apps
2
+
title: Export data from a Log Analytics workspace to a storage account by using Logic Apps
3
3
description: This article describes a method to use Azure Logic Apps to query data from a Log Analytics workspace and send it to Azure Storage.
4
4
ms.service: azure-monitor
5
5
ms.topic: conceptual
@@ -9,13 +9,13 @@ ms.date: 03/01/2022
9
9
---
10
10
11
11
12
-
# Export data from a Log Analytics workspace to a Storage account by using Logic Apps
13
-
This article describes a method to use [Azure Logic Apps](../../logic-apps/index.yml) to query data from a Log Analytics workspace in Azure Monitor and send it to Azure Storage. Use this process when you need to export your Azure Monitor Log data for auditing and compliance scenarios or to allow another service to retrieve this data.
12
+
# Export data from a Log Analytics workspace to a storage account by using Logic Apps
13
+
This article describes a method to use [Azure Logic Apps](../../logic-apps/index.yml) to query data from a Log Analytics workspace in Azure Monitor and send it to Azure Storage. Use this process when you need to export your Azure Monitor Logs data for auditing and compliance scenarios or to allow another service to retrieve this data.
14
14
15
15
## Other export methods
16
16
The method discussed in this article describes a scheduled export from a log query by using a logic app. Other options to export data for particular scenarios include:
17
17
18
-
- To export data from your Log Analytics workspace to a Storage account or Azure Event Hubs, use the Log Analytics workspace data export feature of Azure Monitor Logs. See [Log Analytics workspace data export in Azure Monitor](logs-data-export.md).
18
+
- To export data from your Log Analytics workspace to a storage account or Azure Event Hubs, use the Log Analytics workspace data export feature of Azure Monitor Logs. See [Log Analytics workspace data export in Azure Monitor](logs-data-export.md).
19
19
- One-time export by using a logic app. See [Azure Monitor Logs connector for Logic Apps and Power Automate](logicapp-flow-connector.md).
20
20
- One-time export to a local machine by using a PowerShell script. See [Invoke-AzOperationalInsightsQueryExport](https://www.powershellgallery.com/packages/Invoke-AzOperationalInsightsQueryExport).
21
21
@@ -38,7 +38,7 @@ When you export the data on a schedule, use the `ingestion_time()` function in y
38
38
The following prerequisites must be completed before you start this procedure:
39
39
40
40
-**Log Analytics workspace**: The user who creates the logic app must have at least read permission to the workspace.
41
-
-**Storage account**: The Storage account doesn't have to be in the same subscription as your Log Analytics workspace. The user who creates the logic app must have write permission to the Storage account.
41
+
-**Storage account**: The storage account doesn't have to be in the same subscription as your Log Analytics workspace. The user who creates the logic app must have write permission to the storage account.
42
42
43
43
## Connector limits
44
44
Log Analytics workspace and log queries in Azure Monitor are multitenancy services that include limits to protect and isolate customers and maintain quality of service. When you query for a large amount of data, consider the following limits, which can affect how you configure the Logic Apps recurrence and your log query:
@@ -52,13 +52,13 @@ Log Analytics workspace and log queries in Azure Monitor are multitenancy servic
52
52
53
53
The following sections walk you through the procedure.
54
54
55
-
### Create a container in the Storage account
55
+
### Create a container in the storage account
56
56
57
-
Use the procedure in [Create a container](../../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container) to add a container to your Storage account to hold the exported data. The name used for the container in this article is **loganalytics-data**, but you can use any name.
57
+
Use the procedure in [Create a container](../../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container) to add a container to your storage account to hold the exported data. The name used for the container in this article is **loganalytics-data**, but you can use any name.
58
58
59
59
### Create a logic app
60
60
61
-
1. Go to **Logic Apps** in the Azure portal and select **Add**. Select a **Subscription**, **Resource group**, and **Region** to store the new Logic App. Then give it a unique name. You can turn on the **Log Analytics** setting to collect information about runtime data and events as described in [Set up Azure Monitor logs and collect diagnostics data for Azure Logic Apps](../../logic-apps/monitor-logic-apps-log-analytics.md). This setting isn't required for using the Azure Monitor Logs connector.
61
+
1. Go to **Logic Apps** in the Azure portal and select **Add**. Select a **Subscription**, **Resource group**, and **Region** to store the new Logic App. Then give it a unique name. You can turn on the **Log Analytics** setting to collect information about runtime data and events as described in [Set up Azure Monitor Logs and collect diagnostics data for Azure Logic Apps](../../logic-apps/monitor-logic-apps-log-analytics.md). This setting isn't required for using the Azure Monitor Logs connector.
62
62
63
63
[](media/logs-export-logic-app/create-logic-app.png#lightbox)
64
64
@@ -170,13 +170,13 @@ The **Compose** action takes the parsed JSON output and creates the object that
170
170
171
171
### Add the Create blob action
172
172
173
-
The Create blob action writes the composed JSON to storage.
173
+
The **Create blob** action writes the composed JSON to storage.
174
174
175
175
1. Select **+ New step**, and then select **+ Add an action**. Under **Choose an operation**, enter **blob**. Then select the **Create blob** action.
176
176
177
177
[](media/logs-export-logic-app/select-create-blob.png#lightbox)
178
178
179
-
1. Enter a name for the connection to your Storage account in **Connection Name**. Then select the folder icon in the **Folder path** box to select the container in your Storage account. Select the **Blob name** to see a list of values from previous activities. Select **Expression** and enter an expression that matches your time interval. For this query, which is run hourly, the following expression sets the blob name per previous hour:
179
+
1. Enter a name for the connection to your storage account in **Connection Name**. Then select the folder icon in the **Folder path** box to select the container in your storage account. Select **Blob name** to see a list of values from previous activities. Select **Expression** and enter an expression that matches your time interval. For this query, which is run hourly, the following expression sets the blob name per previous hour:
@@ -196,7 +196,7 @@ To test the workflow, select **Run**. If the workflow has errors, they're indica
196
196
197
197
### View logs in storage
198
198
199
-
Go to the **Storage accounts** menu in the Azure portal and select your Storage account. Select the **Blobs** tile. Then select the container you specified in the Create blob action. Select one of the blobs and then select **Edit blob**.
199
+
Go to the **Storage accounts** menu in the Azure portal and select your storage account. Select the **Blobs** tile. Then select the container you specified in the **Create blob** action. Select one of the blobs and then select **Edit blob**.
200
200
201
201
[](media/logs-export-logic-app/blob-data.png#lightbox)
0 commit comments