|
| 1 | +--- |
| 2 | +title: Configuring Azure Activity Log Export: A Comprehensive Guide |
| 3 | +description: This article provides guidance on resolving issues related to configuring the export of Azure Activity Logs. This is particularly useful for users who encounter difficulties in setting up or migrating from legacy methods of log export. |
| 4 | +ms.date: 08/18/2025 |
| 5 | +ms.reviewer: v-liuamson; v-gsitser; v-sisidhu |
| 6 | +ms.service: azure-monitor |
| 7 | +ms.custom: I can’t configure export of Activity Logs |
| 8 | +--- |
| 9 | + |
| 10 | +# Configuring Azure Activity Log Export |
| 11 | + |
| 12 | +When configuring Azure Activity Log exports, you might face issues, especially when transitioning from older methods. This guide outlines the steps to ensure a smooth configuration process, addressing common issues and providing actionable solutions. |
| 13 | + |
| 14 | +## Configure Azure Activity Log Export |
| 15 | + |
| 16 | +**Step 1: Verify Current Configuration** |
| 17 | + |
| 18 | +1. Go to the [Azure portal](https://ms.portal.azure.com/auth/login/) and access the **Activity Logs** section. |
| 19 | +1. Check the current export settings to ensure they align with your requirements. |
| 20 | + |
| 21 | +**Step 2: Update Legacy Methods** |
| 22 | + |
| 23 | +1. If you are using legacy APIs or PowerShell commands, update them to the latest versions. |
| 24 | +1. Use the command `Get-AzOperationalInsightsDataSource` to verify existing data sources. |
| 25 | + |
| 26 | +**Step 3: Configure New Export Settings** |
| 27 | + |
| 28 | +1. Go to **Azure Monitor** and select **Diagnostic settings**. |
| 29 | +1. Create a new setting by specifying the **Log Analytics workspace** and **Event Hub** as destinations. |
| 30 | + |
| 31 | +**Step 4: Test the Configuration** |
| 32 | + |
| 33 | +1. Make sure to test the configuration by generating sample logs. |
| 34 | +1. Check the destination to verify that logs are exported as expected. |
| 35 | + |
| 36 | +**Step 5: Monitor and Adjust**: |
| 37 | + |
| 38 | +1. Regularly monitor the logs to ensure they are being exported correctly. |
| 39 | +1. Adjust the settings as necessary based on the log data and performance. |
| 40 | + |
| 41 | +**Frequently asked questions** |
| 42 | + |
| 43 | +**Q1: Why don't the logs appear in the destination?** |
| 44 | + |
| 45 | +**A1:** Make sure the network is well connected, and verify the permissions for Log Analytics workspace. |
| 46 | + |
| 47 | +**Q1: Why are errors appearing in the PowerShell commands?** |
| 48 | + |
| 49 | +**A1:** Make sure you are using the latest Azure PowerShell module. |
| 50 | + |
| 51 | +## References |
| 52 | + |
| 53 | +- [Azure Monitor Documentation](/azure/azure-monitor/fundamentals/overview) |
| 54 | +- [Azure Activity Logs Overview](/azure/azure-monitor/fundamentals/data-sources) |
| 55 | +- [Configure Diagnostic Settings](/azure/azure-monitor/platform/diagnostic-settings?tabs=portal) |
| 56 | + |
| 57 | +## Contact us for help |
| 58 | + |
| 59 | +If you have questions or need help, create a [support request](https://ms.portal.azure.com/#view/Microsoft_Azure_Support/HelpAndSupportBlade/~/overview?DMC=troubleshoot), or ask [Azure community support](/answers/tags/133/azure). You can also submit product feedback to [Azure feedback community](https://feedback.azure.com/d365community) |
0 commit comments