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
Copy file name to clipboardExpand all lines: articles/event-hubs/event-hubs-diagnostic-logs.md
+23-25Lines changed: 23 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,54 +15,52 @@ ms.topic: article
15
15
ms.tgt_pltfrm: na
16
16
ms.workload: data-services
17
17
ms.custom: seodec18
18
-
ms.date: 12/06/2018
18
+
ms.date: 04/28/2020
19
19
ms.author: shvija
20
20
21
21
---
22
22
# Set up diagnostic logs for an Azure event hub
23
23
24
24
You can view two types of logs for Azure Event Hubs:
25
25
26
-
***[Activity logs](../azure-monitor/platform/platform-logs-overview.md)**: These logs have information about operations performed on a job. The logs are always enabled.
26
+
***[Activity logs](../azure-monitor/platform/platform-logs-overview.md)**: These logs have information about operations performed on a job. The logs are always enabled. You can see activity log entries by selecting **Activity log** on the left menu for your event hub namespace in the Azure portal. For example: "Create or Update Namespace", "Create or Update Event Hub".
27
+
28
+

27
29
***[Diagnostic logs](../azure-monitor/platform/platform-logs-overview.md)**: You can configure diagnostic logs for a richer view of everything that happens with a job. Diagnostic logs cover activities from the time the job is created until the job is deleted, including updates and activities that occur while the job is running.
28
30
31
+
The following section shows you how to enable diagnostic logs for an Event Hubs namespace.
29
32
30
33
## Enable diagnostic logs
31
-
32
34
Diagnostic logs are disabled by default. To enable diagnostic logs, follow these steps:
33
35
34
-
1. In the [Azure portal](https://portal.azure.com), under **Monitoring + Management**, click **Diagnostics logs**.
35
-
36
-

37
-
38
-
2. Click the resource you want to monitor.
39
-
40
-
3. Click **Turn on diagnostics**.
41
-
42
-

43
-
44
-
4. For **Status**, click **On**.
45
-
46
-

36
+
1. In the [Azure portal](https://portal.azure.com), navigate to your Event Hubs namespace.
37
+
2. Select **Diagnostics settings** under **Monitoring** in the left pane, and then select **+ Add diagnostic setting**.
47
38
48
-
5. Set the archive target that you want; for example, a storage account, an event hub, or Azure Monitor logs.
4. In the **Category details** section, select the **types of diagnostic logs** that you want to enable. You will find details about these categories later in this article.
41
+
5. In the **Destination details** section, set the archive target (destination) that you want; for example, a storage account, an event hub, or a Log Analytics workspace.
6. Select **Save** on the toolbar to save the diagnostics settings.
51
45
52
-
New settings take effect in about 10 minutes. After that, logs appear in the configured archival target, in the **Diagnostics logs** pane.
46
+
New settings take effect in about 10 minutes. After that, logs appear in the configured archival target, in the **Diagnostics logs** pane.
53
47
54
-
For more information about configuring diagnostics, see the [overview of Azure diagnostic logs](../azure-monitor/platform/platform-logs-overview.md).
48
+
For more information about configuring diagnostics, see the [overview of Azure diagnostic logs](../azure-monitor/platform/platform-logs-overview.md).
55
49
56
50
## Diagnostic logs categories
57
51
58
-
Event Hubs captures diagnostic logs for two categories:
52
+
Event Hubs captures diagnostic logs for the following categories:
59
53
60
-
***Archive Logs**: logs related to Event Hubs archives, specifically, logs related to archive errors.
61
-
***Operational Logs**: information about what is happening during Event Hubs operations, specifically, the operation type, including event hub creation, resources used, and the status of the operation.
54
+
-**Archive Logs**: logs related to Event Hubs archives, specifically, logs related to archive errors.
55
+
-**Operational Logs**: information about what is happening during Event Hubs operations, specifically, the operation type, including event hub creation, resources used, and the status of the operation.
56
+
-**Auto scale logs**: information about auto-scaling operations done on an Event Hubs namespace.
57
+
-**Kafka coordinator logs** - information about Kafka coordinator operations related to Event Hubs.
58
+
-**Kafka user logs**: information about Kafka user operations related to Event Hubs.
59
+
-**Event Hubs virtual network (VNet) connection event**: information about Event Hubs virtual network connection events.
60
+
-**Customer managed key user logs**: information about operations related to customer-managed key.
62
61
63
-
## Diagnostic logs schema
64
62
65
-
All logs are stored in JavaScript Object Notation (JSON) format. Each entry has string fields that use the format described in the following sections.
63
+
All logs are stored in JavaScript Object Notation (JSON) format. Each entry has string fields that use the format described in the following sections.
0 commit comments