|
1 | 1 | --- |
2 | | -title: Exporting Directory Level Activity Logs to Event Hub |
3 | | -description: Provides guidance on exporting directory-level activity logs to an Event Hub using Azure's management group level diagnostic settings. |
| 2 | +title: Exporting Directory-Level Activity Logs to Event Hubs |
| 3 | +description: Provides guidance for exporting directory-level activity logs to Event Hubs by using Azure management group-level diagnostic settings. |
4 | 4 | ms.date: 07/16/2025 |
5 | 5 | ms.reviewer: v-liuamson; v-gsitser; v-sisidhu |
6 | 6 | ms.service: azure-monitor |
7 | 7 | ms.custom: I can’t configure export of Activity Logs |
8 | 8 | --- |
9 | 9 |
|
10 | | -# Exporting Directory Level Activity Logs to Event Hub |
| 10 | +# Export directory-level activity logs to Event Hubs |
11 | 11 |
|
12 | | -This article provides guidance on exporting directory-level activity logs to an Event Hub using Azure's management group level diagnostic settings. This process is essential for users who need to monitor and analyze activity logs efficiently. |
| 12 | +This article provides guidance to export directory-level activity logs to Event Hubs by using Microsoft Azure management group-level diagnostic settings. This process is essential for users who have to monitor and analyze activity logs efficiently. |
13 | 13 |
|
14 | 14 | ## Introduction |
15 | 15 |
|
16 | | -Exporting directory-level activity logs to an Event Hub can be achieved through an API call that creates management group level diagnostic settings. This solution is particularly useful for organizations looking to centralize their log data for better analysis and monitoring. |
| 16 | +You can export directory-level activity logs to an event hub through an API call that creates management group-level diagnostic settings. This solution is particularly useful for organizations that want to centralize their log data for better analysis and monitoring. |
17 | 17 |
|
18 | | -### Step-by-step instructions to export logs |
| 18 | +### Instructions to export logs |
19 | 19 |
|
20 | | -1. **Access Azure Portal** |
21 | | - - Navigate to the Azure portal and sign in with your credentials. |
| 20 | +1. **Access the Azure portal**: Navigate to the Azure portal, and sign in by using your credentials. |
22 | 21 |
|
23 | | -2. **Locate Diagnostic Settings** |
24 | | - - Go to the **Azure Monitor** section. |
25 | | - - Select **Diagnostic settings** from the menu. |
| 22 | +2. **Locate diagnostic settings**: Go to the **Azure Monitor** section, and select **Diagnostic settings** on the menu. |
26 | 23 |
|
27 | | -3. **Create or Update Diagnostic Settings** |
28 | | - - Click on **Add diagnostic setting**. |
29 | | - - Choose the resource for which you want to export logs. |
| 24 | +3. **Create or update diagnostic settings**: Select **Add diagnostic setting**, and select the resource that you want to export logs for. |
30 | 25 |
|
31 | | -4. **Configure Export to Event Hub** |
32 | | - - Under **Destination details**, select **Event Hub**. |
33 | | - - Provide the necessary **Event Hub namespace** and **Event Hub name**. |
34 | | - - Ensure the **Event Hub key ID** is correctly entered. |
| 26 | +4. **Configure export to event hub**: Under **Destination details**, select **Event Hub**. Provide the necessary **Event Hub namespace** and **Event Hub name** values. Make sure that the **Event Hub key ID** value is entered correctly. |
35 | 27 |
|
36 | | -5. **Save and Verify** |
37 | | - - Click **Save** to apply the settings. |
38 | | - - Verify that logs are being exported by checking the Event Hub for incoming data. |
| 28 | +5. **Save and verify**: Select **Save** to apply the settings. Check the event hub for incoming data to verify that the logs are exported. |
39 | 29 |
|
40 | | -### Common Issues and Solutions |
| 30 | +### Common issues and solutions |
41 | 31 |
|
42 | | -- **Issue:** Logs are not appearing in Event Hub. |
43 | | - - **Solution:** Double-check the Event Hub configuration and ensure the correct namespace and key ID are used. |
| 32 | +- **Issue:** Logs don't appear in Event Hubs. |
| 33 | + - **Solution:** Double-check the event hub configuration to make sure that the correct namespace and key ID are used. |
44 | 34 |
|
45 | | -- **Issue:** Permission errors when setting up diagnostic settings. |
46 | | - - **Solution:** Ensure you have the necessary permissions to create or update diagnostic settings in Azure. |
| 35 | +- **Issue:** Permission errors occur when making diagnostic settings. |
| 36 | + - **Solution:** Make sure that you have the necessary permissions to create or update diagnostic settings in Azure. |
47 | 37 |
|
48 | | -## Reference |
| 38 | +## References |
49 | 39 |
|
50 | 40 | - [Azure Monitor Documentation](https://learn.microsoft.com/azure/monitoring/) |
51 | 41 | - [Event Hubs Documentation](https://learn.microsoft.com/azure/event-hubs/) |
|
0 commit comments