How to backup Log Analytics Workspace logs to a blob?

Gregorio Montaño 251 Reputation points
2023-02-20T00:24:44.7233333+00:00

Hi,

How do I create an automatic backup of my Log Analytics Workspace Logs (by DataType/Table with some tables reaching 1TB) every X months?

And, if you can also share how to restore them (to a different workspace) for analysis later?

Thanks!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,661 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Luke Murray 11,436 Reputation points MVP Volunteer Moderator
    2023-02-20T05:20:30.9366667+00:00

    Hi, Gregorio

    Depending on your use cases, you could configure the logs to be exported to an Azure Storage account and then when needed use Azure Data Factory to export them into Azure Data Explorer for analysis.

    This article here is a great reference point: Integrate Azure Data Explorer for long-term log retention

    It talks to Sentinel, but the concept is the same, keep only the most recent and relevant data that will be queried in Log Analytics, everything else gets archived.

    Store data in Azure Data Explorer and Microsoft Sentinel in parallel.


  2. SwathiDhanwada-MSFT 18,996 Reputation points Moderator
    2023-02-22T05:15:50.94+00:00

    @Gregorio Montaño You can use Logic Apps to export data from Log analytics workspace to storage account. You will have option to set the recurrence on how frequently the export should be done. For more information on how to do this, refer this article.

    It's suggested that you can directly send your logs to storage account instead of storing them in log analytics workspace and then sending it to storage account. As this approach has lower latency compared to data export in Log Analytics. Also, you can query the data stored in storage account using Azure Data Explorer. Refer this for more information.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.