Skip to content

Commit c796de0

Browse files
author
Simonx Xu
authored
Merge pull request #9405 from MicrosoftDocs/main
Auto push to live 2025-07-23 18:07:43
2 parents d5724bc + bc87f17 commit c796de0

File tree

4 files changed

+141
-0
lines changed

4 files changed

+141
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Troubleshoot Activity Log Download Issues
3+
description: Troubleshooting guide for Azure activity log download issues
4+
ms.date: 07/22/2025
5+
ms.reviewer: v-liuamson; v-gsitser
6+
ms.service: azure-monitor
7+
ms.custom: I can’t configure export of Activity Logs
8+
---
9+
10+
# Troubleshooting activity log download issues
11+
12+
When users try to download activity logs from Microsoft Azure, they might receive error messages that indicate that the CSV file wasn't prepared. This issue often occurs if the requested logs exceed a certain volume and cause the process to fail. Understanding the root cause and implementing the right solutions can help resolve this issue efficiently.
13+
14+
## Common issues and solutions
15+
16+
- **Issue**: The download process fails because an excessive number of logs are requested. This activity generates a "file not found" error.
17+
- **Solution**: Reduce the range of time during which logs are requested to minimize the volume and prevent errors.
18+
19+
### Instructions to resolve download failures
20+
21+
1. Check the error message to verify that it relates to the CSV file preparation failure.
22+
2. Navigate to the Azure portal, and access the **Activity Logs** section. Reduce the time range that you're trying to download logs for. This change can help decrease the number of logs that are processed.
23+
3. Clear your browser cache to make sure that no outdated data is causing issues.
24+
4. If possible, break down the log requests into smaller batches to avoid overwhelming the system.
25+
5. Make sure that the storage account where the logs are stored is reachable and correctly configured.
26+
27+
## FAQ: Azure activity log download
28+
29+
**Q1: Why does the download fail?**
30+
31+
**A1:** The download might fail if the number of requested logs is excessive and prevents the system from being able to process the logs.
32+
33+
**Q2: How can I avoid download failures?**
34+
35+
**A2:** To avoid this issue, prevent the system from being overwhelmed. To do this, reduce the time range for the download, and request logs in smaller batches.
36+
37+
## References
38+
39+
- [Azure Activity Logs Overview](/azure/azure-monitor/essentials/activity-log)
40+
- [Azure Storage documentation](/azure/storage/)
41+
- [Azure Monitor documentation](/azure/azure-monitor/)
42+
- [Azure portal guide](/azure/azure-portal/)
43+
44+
If the issue persists after you follow these steps, open a support case for further assistance.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Troubleshoot Export of Audit Logs to Another Tenant
3+
description: This article provides guidance to resolve permissions-related errors when you export audit logs to another tenant.
4+
ms.date: 07/22/2025
5+
ms.reviewer: v-liuamson; v-gsitser
6+
ms.service: azure-monitor
7+
ms.custom: I can’t configure export of Activity Logs
8+
---
9+
10+
# Troubleshoot export of audit logs to another tenant
11+
12+
When users try to export audit logs from one tenant to another by using Microsoft Azure Lighthouse, they might experience permissions-related errors. This article provides guidance to resolve these issues.
13+
14+
## Common issues and solutions
15+
16+
- **Issue**: Permissions errors occur when a user configures diagnostic settings for exporting audit logs.
17+
- **Root cause**: The user lacks the required permissions on the target workspace or has an incorrect role assignment.
18+
19+
### Instructions to resolve export issues
20+
21+
1. Verify the user's permissions:
22+
1. Make sure that the user has the necessary permissions to perform actions on the target workspace.
23+
1. Navigate to the Azure portal, and check the user's role assignments in the **Access Control (IAM)** section.
24+
25+
2. Reset the guest invitation:
26+
1. If the user is a guest, reset the invitation status to ensure proper linkage between home and resource tenants.
27+
1. Follow the steps in [Reset Guest Invitation Status](/entra/external-id/reset-redemption-status).
28+
29+
3. Check the role assignments:
30+
1. Verify that the user has the appropriate roles assigned, such as **Log Analytics Contributor** or **Reader**.
31+
1. Use the Azure portal to assign roles, if it's necessary.
32+
33+
4. Review ARM template role definitions:
34+
1. Make sure that the ARM template that's used for deployment specifies the correct `RoleDefinitionId` value.
35+
1. Adjust the template as necessary to include the required permissions.
36+
37+
5. Test the configuration:
38+
1. Test the configuration to make sure that logs are exported successfully.
39+
1. Monitor the Azure activity logs for any more error messages or warnings.
40+
41+
## References
42+
43+
- [Manage Access to Log Analytics workspaces](/azure/azure-monitor/logs/manage-access?tabs=portal#workspace-permissions)
44+
- [Azure role assignments](/azure/role-based-access-control/role-assignments-portal)
45+
46+
If the issue persists after you follow these steps, open a support case for further assistance.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: Understanding and Managing Diagnostic Settings Retention
3+
description: Provides guidance for understanding and managing diagnostic settings retention.
4+
ms.date: 07/22/2025
5+
ms.reviewer: v-liuamson; v-gsitser
6+
ms.service: azure-monitor
7+
ms.custom: I can’t configure export of Activity Logs
8+
---
9+
10+
# Understanding and managing diagnostic settings retention
11+
12+
When you manage Azure resources, you might experience issues that are related to the transition from diagnostic settings storage retention to Azure Storage lifecycle management. This article provides guidance to handle these issues effectively.
13+
14+
## Common issues and solutions
15+
16+
- **Issue**: Users might notice that templates aren't displayed when they try to verify resources that are affected by the transition from legacy solutions to diagnostic settings.
17+
- **Root cause**: The automatic switch from activity log solutions to diagnostic settings might cause confusion if users don't fully understand diagnostic settings retention.
18+
19+
### Instructions to resolve diagnostic settings issues
20+
21+
1. Determine how resources are affected:
22+
1. Navigate to the Azure portal > **All Services**.
23+
1. Select **Resource Manager**.
24+
1. Select **Deploy**, and then select **Templates** in the left pane.
25+
1. Check whether any resources are affected by the transition.
26+
27+
2. To determine whether legacy solutions are in use, run the following PowerShell command:
28+
29+
```powershell
30+
$WorkspaceName = Get-AzOperationalInsightsWorkspace
31+
foreach ($Name in $WorkspaceName) {
32+
Get-AzOperationalInsightsDataSource -Kind AzureActivityLog -ResourceGroupName $Name.ResourceGroupName -WorkspaceName $Name.Name
33+
}
34+
```
35+
36+
If no output is returned, legacy solutions aren't in use, and no further action is required.
37+
38+
3. Understand that the transition to diagnostic settings is automatic. If your environment is already using diagnostic settings, no additional steps are necessary.
39+
40+
## References
41+
42+
- [Azure Monitor activity logs](/azure/azure-monitor/platform/activity-log?tabs=powershell#legacy-collection-methods)
43+
- [Azure Storage lifecycle management](/azure/storage/blobs/storage-lifecycle-management-concepts)
44+
45+
If the issue persists after you follow these steps, open a support case for further assistance.

support/azure/azure-monitor/toc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ items:
1717
href: activity-logs/config-export/exporting-directory-level-activity-logs-to-event-hub.md
1818
- name: Resolving Log Limit Issues in Azure Function Apps
1919
href: activity-logs/config-export/resolving-log-limit-issues-in-azure-function-apps.md
20+
- name: Understanding and Managing Diagnostic Settings Retention
21+
href: activity-logs/config-export/understanding-and-managing-diagnostic-settings-retention.md
2022
- name: Centralized Configuration of Activity Logs to Event Hub
2123
href: activity-logs/config-export/centralized-configuration-of-activity-logs-to-event-hub.md
2224
- name: Troubleshoot Azure CLI Configuration Issues
2325
href: activity-logs/config-export/troubleshoot-azure-cli-configuration-issues.md
26+
- name: Troubleshoot Export of Audit Logs to Another Tenant
27+
href: activity-logs/config-export/troubleshoot-export-of-audit-logs-to-another-tenant.md
28+
- name: Troubleshoot Activity Log Download Issues
29+
href: activity-logs/config-export/troubleshoot-activity-log-download-issues.md
2430
- name: Application Insights
2531
items:
2632
- name: OpenTelemetry troubleshooting

0 commit comments

Comments
 (0)