Skip to content

Commit ea8726a

Browse files
committed
Update logs-export-logic-app.md
1 parent 45065e1 commit ea8726a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ms.date: 03/01/2022
99

1010
---
1111

12+
1213
# Archive data from Log Analytics workspace to Azure storage using Logic App
1314
This article describes a method to use [Azure Logic App](../../logic-apps/index.yml) to query data from a Log Analytics workspace in Azure Monitor and send 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.
1415

@@ -17,7 +18,7 @@ The method described in this article describes a scheduled export from a log que
1718

1819
- To export data from your Log Analytics workspace to an Azure Storage Account or 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)
1920
- One time export using a Logic App. See [Azure Monitor Logs connector for Logic Apps and Power Automate](logicapp-flow-connector.md).
20-
- One time export to local machine using PowerShell script. See [Invoke-AzOperationalInsightsQueryExport]](https://www.powershellgallery.com/packages/Invoke-AzOperationalInsightsQueryExport).
21+
- One time export to local machine using PowerShell script. See [Invoke-AzOperationalInsightsQueryExport](https://www.powershellgallery.com/packages/Invoke-AzOperationalInsightsQueryExport).
2122

2223
## Overview
2324
This procedure uses the [Azure Monitor Logs connector](/connectors/azuremonitorlogs/) which lets you run a log query from a Logic App and use its output in other actions in the workflow. The [Azure Blob Storage connector](/connectors/azureblob/) is used in this procedure to send the query output to Azure storage.
@@ -154,16 +155,14 @@ Click in the **Content** box to display a list of values from previous activitie
154155
}
155156
```
156157

157-
158-
159-
![Parse JSON payload](media/logs-export-logic-app/parse-json-payload.png)
158+
[![Parse JSON payload](media/logs-export-logic-app/parse-json-payload.png)](media/logs-export-logic-app/parse-json-payload.png#lightbox)
160159

161160
## Add the Compose action
162161
The **Compose** action takes the parsed JSON output and creates the object that you need to store in the blob.
163162

164163
Click **+ New step**, and then click **+ Add an action**. Under **Choose an action**, type **compose** and then select the **Compose** action.
165164

166-
![Select Compose action](media/logs-export-logic-app/select-compose.png)
165+
[![Select Compose action](media/logs-export-logic-app/select-compose.png)](media/logs-export-logic-app/select-compose.png#lightbox)
167166

168167

169168
Click the **Inputs** box display a list of values from previous activities. Select **Body** from the **Parse JSON** action. This is the parsed output from the log query.
@@ -189,7 +188,7 @@ subtractFromTime(formatDateTime(utcNow(),'yyyy-MM-ddTHH:00:00'), 1,'Hour')
189188
Click the **Blob content** box to display a list of values from previous activities and then select **Outputs** in the **Compose** section.
190189

191190

192-
![Create blob expression](media/logs-export-logic-app/create-blob.png)
191+
[![Create blob expression](media/logs-export-logic-app/create-blob.png)](media/logs-export-logic-app/create-blob.png#lightbox)
193192

194193

195194
## Test the Logic App

0 commit comments

Comments
 (0)