Forum Discussion
Dean_Gross
Jul 12, 2022Silver Contributor
Moving log analytics workspaces to another tenant
What is the recommended way to move/copy/export a log analytics workspace to a new tenant when a firm get acquired and they want to keep the contents for compliance purposes?
MSFT-thommck
Microsoft
Jul 19, 2024I know this is an old question but this may help others who find it.
As usual, there is not 1 "best way" to do it and the value of logs may be limited as resource IDs won't line up in the new tenant. Even so, here is a round up of solutions that should help with a one-off move.
-
One-time export by using a logic app. See Azure Monitor Logs connector for Logic Apps.
-
One-time export to a local machine by using a PowerShell script. See Invoke-AzOperationalInsightsQueryExport.
-
Schedule export of data based on a log query you define with the Log Analytics query API. Use Azure Data Factory, Azure Functions, or Azure Logic Apps to orchestrate queries in your workspace and export data to a destination. This method is similar to the data export feature, but you can use it to export historical data from your workspace by using filters and aggregation. This method is subject to log query limits and isn't intended for scale. For more information, see Export data from a Log Analytics workspace to a Storage Account by using Logic Apps.
For continuous shipping of logs you can use the built-in data export rules in Azure Monitor but the best way is to get the source of the log to send to multiple places before it gets ingested into a single workspace: Log Analytics workspace data export in Azure Monitor
Dean_Gross
Jul 19, 2024Silver Contributor
Thanks, I don't recall seeing that Operational Excellence set of documentation. I will be spending some time reviewing that content.