You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Centralized Configuration of Activity Logs to Event Hubs
3
+
description: Provides guidance to set up Azure Activity Logs to be centrally exported to a single Event Hub.
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
+
# Centralized Configuration of Activity Logs to Event Hubs
11
+
12
+
## Introduction
13
+
14
+
This article provides guidance for setting up Azure Activity Logs to be centrally exported to a single hub in Azure Event Hubs. This setup is useful for organizations that want to streamline log management across multiple Azure subscriptions and forward logs to third-party SIEM solutions.
15
+
16
+
Organizations often require a centralized approach to manage Activity Logs across numerous subscriptions. This guide discusses common challenges and considerations for configuring Azure Policies to automate streaming these logs to a specified event hub.
17
+
18
+
## Instructions to configure Activity Logs
19
+
20
+
1.**Create an Azure Policy for Activity Logs:**
21
+
- Navigate to the Azure portal, and access the **Azure Policy** service.
22
+
- Create a policy definition by using the JSON file that's provided in the community example. This policy should automate the enablement of activity log diagnostic settings across all subscriptions under a management group.
23
+
24
+
2.**Assign the Policy to Management Group:**
25
+
- Assign the newly created policy to the desired management group that contains the required subscriptions.
26
+
- Make sure that the policy is set to send data to the specified Event Hub.
27
+
28
+
3.**Configure Log Analytics Workspace:**
29
+
- Access **Log Analytics Workspace** in the Azure portal.
30
+
- Set up data export rules to forward logs from the Log Analytics Workspace to the event hub. Specify the source table as `AzureActivity` and the destination as the central event hub.
31
+
32
+
4.**Verify event hub configuration:**
33
+
- Make sure that the event hub is configured to handle the expected log volume from all subscriptions.
34
+
- Review performance benchmarks and adjust the event hub tier if it's necessary to manage logs efficiently.
35
+
36
+
5.**Monitor and adjust:**
37
+
- Regularly monitor the event hub performance and log flow.
38
+
- Adjust configurations as necessary to optimize performance and cost.
39
+
40
+
## Common issues and solutions
41
+
42
+
-**Performance concerns:** If the event hub experiences difficulty in handling the log volume, consider upgrading the tier or distributing logs across multiple hubs.
43
+
-**Policy Limitations:** Azure Policy might require manual steps for each subscription. Make sure that all configurations are correctly applied.
44
+
45
+
## Reference
46
+
47
+
-[Azure Policy Assignment to Enable Activity Log on Subscription](/azure/policy-assignment-to-enable-activity-log-on-subscription)
title: Understanding and Transitioning from Legacy to Diagnostic Settings for Activity Logs
3
3
description: Provides step-by-step instructions to transition from legacy to diagnostic settings.
4
-
ms.date: 07/16/2025
4
+
ms.date: 07/22/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
@@ -11,9 +11,17 @@ ms.custom: I can’t configure export of Activity Logs
11
11
12
12
When Azure announced the transition from legacy solutions to diagnostic settings for forwarding activity logs, users received notifications about necessary updates. This article provides guidance on how to manage this transition effectively.
13
13
14
-
###Introduction
14
+
## Introduction
15
15
Azure is retiring the legacy solution for forwarding activity logs and replacing it with diagnostic settings. This change is automatic, but users with automation relying on the legacy API need to update their configurations. This guide will help you verify your current setup and make necessary adjustments.
16
16
17
+
## Common Issues and Solutions
18
+
19
+
-**Issue:** Unable to find existing log profiles.
20
+
-**Solution:** Ensure you are using the correct commands and have the necessary permissions to access log profiles.
21
+
22
+
-**Issue:** Automation scripts fail after the transition.
23
+
-**Solution:** Double-check that all scripts are updated to use the new diagnostic settings API.
24
+
17
25
### Step-by-Step Instructions to Transition to Diagnostic Settings
18
26
19
27
1.**Verify Existing Log Profiles**
@@ -22,24 +30,16 @@ Azure is retiring the legacy solution for forwarding activity logs and replacing
22
30
23
31
2.**Update Automation Scripts**
24
32
- If you have automation scripts using the legacy API, update them to use the diagnostic settings API by September 30, 2026.
25
-
- Refer to the [Azure Monitor documentation](https://learn.microsoft.com/azure/azure-monitor/platform/activity-log?tabs=powershell#managing-legacy-log-profiles---retiring) for detailed instructions.
33
+
- Refer to the [Azure Monitor documentation](/azure/azure-monitor/platform/activity-log?tabs=powershell#managing-legacy-log-profiles---retiring) for detailed instructions.
26
34
27
35
3.**Manual Transition to Diagnostic Settings**
28
36
- For users with legacy log profiles, manually transition to diagnostic settings by following the steps outlined in the Azure documentation.
29
37
- Ensure all configurations are updated before the retirement date to avoid disruptions.
30
38
31
-
### Common Issues and Solutions
32
-
33
-
-**Issue:** Unable to find existing log profiles.
34
-
-**Solution:** Ensure you are using the correct commands and have the necessary permissions to access log profiles.
35
-
36
-
-**Issue:** Automation scripts fail after the transition.
37
-
-**Solution:** Double-check that all scripts are updated to use the new diagnostic settings API.
0 commit comments