Skip to content

Commit 9ac1b5f

Browse files
Merge pull request #10510 from ryanberg-aquent/CI-9080
AB#9080: Resolve Issues Configuring Long-Term Storage for Azure Activity Logs
2 parents d5b0871 + bebe3fe commit 9ac1b5f

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Resolve Issues in Configuring Long-Term Storage for Azure Activity Logs
3+
description: Discusses how to configure long-term storage for Azure Activity Logs past the default 90 days.
4+
ms.date: 01/14/2026
5+
ms.author: jarrettr
6+
ms.editor: v-gsitser
7+
ms.reviewer: v-ryanberg
8+
ms.service: azure-monitor
9+
ms.custom: I can’t configure export of Activity Logs
10+
---
11+
12+
# Configure long-term storage for Azure Activity Logs
13+
14+
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.
15+
16+
## Configure long-term storage
17+
18+
### Step 1: Create a diagnostic setting
19+
20+
1. Go to [Azure portal](https://ms.portal.azure.com/auth/login/) > **Monitor**.
21+
22+
2. Under **Settings**, select **Diagnostic settings**.
23+
24+
3. Select **Add diagnostic setting**.
25+
26+
4. In **Activity Log**, select the log that you want to configure.
27+
28+
### Step 2: Specify the destination
29+
30+
1. Got to **Log Analytic** > **Event Hubs** > **Azure Storage**, and then select the destinations for your logs.
31+
32+
2. Set the destination resource to retain logs for more than 90 days.
33+
34+
### Step 3: Configure the retention settings
35+
36+
1. If you use Azure Storage, navigate to **Storage Account**.
37+
38+
2. Under **Data Management**, select **Lifecycle Management**.
39+
40+
3. Set the retention period to your desired duration.
41+
42+
### Step 4: Verify the configuration
43+
44+
1. Return to **Diagnostic settings**, and make sure that your settings are saved.
45+
46+
2. Check the destination resource to verify that logs are stored as expected.
47+
48+
## Frequently asked questions
49+
50+
**Q1: Why don't the logs appear in the destination?**
51+
52+
**A1:** Make sure that the diagnostic setting is correctly configured and the destination resource is active.
53+
54+
**Q2: Why is the retention period not applied?**
55+
56+
**A2:** Verify that the retention settings in the destination resource are set correctly.
57+
58+
## References
59+
60+
- [Azure Monitor Documentation](/azure/azure-monitor/platform/activity-log?tabs=powershell)
61+
62+
- [Azure Storage Lifecycle Management](/azure/storage/blobs/storage-lifecycle-management-concepts)

support/azure/azure-monitor/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ items:
2121
href: activity-logs/config-export/troubleshoot-export-of-activity-logs-across-subscriptions.md
2222
- name: Configuring Azure Activity Log Export
2323
href: activity-logs/config-export/configuring-azure-activity-log-export-comprehensive-guide.md
24+
- name: Configure long-term storage for Azure Activity Logs
25+
href: activity-logs/config-export/configure-long-term-storage-activity-logs.md
2426
- name: Application Insights
2527
items:
2628
- name: OpenTelemetry troubleshooting

0 commit comments

Comments
 (0)