Skip to content

Commit 4329582

Browse files
authored
Update logs-export-logic-app.md
1 parent d866edd commit 4329582

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/azure-monitor/logs/logs-export-logic-app.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
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
33
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.
44
ms.service: azure-monitor
55
ms.topic: conceptual
@@ -9,13 +9,13 @@ ms.date: 03/01/2022
99
---
1010

1111

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

1515
## Other export methods
1616
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:
1717

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).
1919
- One-time export by using a logic app. See [Azure Monitor Logs connector for Logic Apps and Power Automate](logicapp-flow-connector.md).
2020
- One-time export to a local machine by using a PowerShell script. See [Invoke-AzOperationalInsightsQueryExport](https://www.powershellgallery.com/packages/Invoke-AzOperationalInsightsQueryExport).
2121

@@ -38,7 +38,7 @@ When you export the data on a schedule, use the `ingestion_time()` function in y
3838
The following prerequisites must be completed before you start this procedure:
3939

4040
- **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.
4242

4343
## Connector limits
4444
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
5252

5353
The following sections walk you through the procedure.
5454

55-
### Create a container in the Storage account
55+
### Create a container in the storage account
5656

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

5959
### Create a logic app
6060

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

6363
[![Screenshot that shows creating a logic app.](media/logs-export-logic-app/create-logic-app.png "Screenshot that shows creating a Logic Apps resource.")](media/logs-export-logic-app/create-logic-app.png#lightbox)
6464

@@ -170,13 +170,13 @@ The **Compose** action takes the parsed JSON output and creates the object that
170170
171171
### Add the Create blob action
172172
173-
The Create blob action writes the composed JSON to storage.
173+
The **Create blob** action writes the composed JSON to storage.
174174
175175
1. Select **+ New step**, and then select **+ Add an action**. Under **Choose an operation**, enter **blob**. Then select the **Create blob** action.
176176
177177
[![Screenshot that shows selecting the Create Blob action.](media/logs-export-logic-app/select-create-blob.png "Screenshot that shows creating a Blob storage action.")](media/logs-export-logic-app/select-create-blob.png#lightbox)
178178
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:
180180
181181
```json
182182
subtractFromTime(formatDateTime(utcNow(),'yyyy-MM-ddTHH:00:00'), 1,'Hour')
@@ -196,7 +196,7 @@ To test the workflow, select **Run**. If the workflow has errors, they're indica
196196
197197
### View logs in storage
198198
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**.
200200
201201
[![Screenshot that shows blob data.](media/logs-export-logic-app/blob-data.png "Screenshot that shows sample data exported to a blob.")](media/logs-export-logic-app/blob-data.png#lightbox)
202202

0 commit comments

Comments
 (0)