|
1 | 1 | --- |
2 | 2 | title: Resolve Issues Configuring Long-Term Storage for Azure Activity Logs |
3 | | -description: This article addresses the issue of configuring long-term storage for Azure Activity Logs, which by default are retained for 90 days. Users may need to store logs for a longer period for compliance or analysis purposes. |
| 3 | +description: Discusses how to configure long-term storage for Azure Activity Logs past the default 90 days. |
4 | 4 | ms.date: 07/23/2025 |
5 | 5 | ms.reviewer: v-liuamson; v-gsitser |
6 | 6 | ms.service: azure-monitor |
7 | 7 | ms.custom: I can’t configure export of Activity Logs |
8 | 8 | --- |
9 | 9 |
|
10 | | -# Resolve Issues Configuring Long-Term Storage for Azure Activity Logs |
| 10 | +# Configure long-term storage for Azure Activity Logs |
11 | 11 |
|
12 | | -This article addresses the issue of configuring long-term storage for Azure Activity Logs, which by default are retained for 90 days. Users may need to store logs for a longer period for compliance or analysis purposes. |
| 12 | +This article discusses how to configure long-term storage for Azure Activity Logs. By default, Activity Logs are retained for 90 days. Users might have to store logs for a longer time for compliance or extended analysis. |
13 | 13 |
|
14 | | -## Introduction |
| 14 | +## Configure long-term storage |
15 | 15 |
|
16 | | -Azure Activity Logs are retained for 90 days by default. This guide provides steps to configure long-term storage for these logs, ensuring they are available for extended analysis or compliance needs. |
| 16 | +### Step 1: Create a diagnostic setting |
17 | 17 |
|
18 | | -### Step-by-Step Instructions to Configure Long-Term Storage |
19 | | - |
20 | | -#### Create a Diagnostic Setting |
21 | | - |
22 | | -1. Navigate to the [Azure portal](https://ms.portal.azure.com/auth/login/) and select **Monitor**. |
23 | | -1. Under **Settings**, choose **Diagnostic settings**. |
| 18 | +1. Go to the [Azure portal](https://ms.portal.azure.com/auth/login/) > **Monitor**. |
| 19 | +1. Under **Settings**, select **Diagnostic settings**. |
24 | 20 | 1. Select **Add diagnostic setting**. |
25 | | -1. Select the **Activity Log** you wish to configure. |
| 21 | +1. Under **Activity Log**, select the log that you want to configure. |
26 | 22 |
|
27 | | -#### Specify the Destination |
| 23 | +### Step 2: Specify the destination |
28 | 24 |
|
29 | | -1. Choose the destinations for your logs from **Log Analytic**, **Event Hubs**, **Azure Storage.** |
30 | | -1. Ensure the destination resource is configured to retain logs for more than 90 days. |
| 25 | +1. Got to **Log Analytic** > **Event Hubs** > **Azure Storage**, and select the destinations for your logs. |
| 26 | +1. Set the destination resource to retain logs for more than 90 days. |
31 | 27 |
|
32 | | -#### Configure Retention Settings |
| 28 | +### Step 3: Configure the retention settings |
33 | 29 |
|
34 | | -1. If using Azure Storage, navigate to the **Storage Account**. |
| 30 | +1. If you use Azure Storage, navigate to the **Storage Account**. |
35 | 31 | 1. Under **Data Management**, select **Lifecycle Management**. |
36 | 32 | 1. Set the retention period to your desired duration. |
37 | 33 |
|
38 | | -#### Verify Configuration |
| 34 | +### Step 4: Verify the configuration |
39 | 35 |
|
40 | | -1. Return to the **Diagnostic settings** and ensure your settings are saved. |
41 | | -1. Check the destination resource to confirm logs are being stored as expected. |
| 36 | +1. Return to **Diagnostic settings**, and make sure that your settings are saved. |
| 37 | +1. Check the destination resource to verify that logs are stored as expected. |
42 | 38 |
|
43 | | -### Frequenctly Asked Questions |
| 39 | +### Frequenctly asked questions |
44 | 40 |
|
45 | | -**Why aren’t the logs appearing in the destination?** |
| 41 | +**Q1: Why don't the logs appear in the destination?** |
46 | 42 |
|
47 | | -Ensure the diagnostic setting is correctly configured and the destination resource is active. |
| 43 | +**A1:** Make sure that the diagnostic setting is correctly configured and the destination resource is active. |
48 | 44 |
|
49 | | -**Why is the retention period not applied?d** |
| 45 | +**Q2: Why is the retention period not applied?** |
50 | 46 |
|
51 | | -Verify that the retention settings in the destination resource are correctly set. |
| 47 | +**A2** Verify that the retention settings in the destination resource are set correctly. |
52 | 48 |
|
53 | | -## Reference |
| 49 | +## References |
54 | 50 |
|
55 | 51 | - [Azure Monitor Documentation](/azure/azure-monitor/platform/activity-log?tabs=powershell) |
56 | 52 | - [Azure Storage Lifecycle Management](/azure/storage/blobs/storage-lifecycle-management-concepts) |
57 | 53 |
|
58 | | -If the issue persists after following the solution steps, please open a support case for further assistance. |
| 54 | +If the issue persists after you follow these steps, open a support case for further assistance. |
0 commit comments