Skip to content

Commit 9031bff

Browse files
committed
Event Hubs diagnostic logs
1 parent 3bad80e commit 9031bff

File tree

4 files changed

+23
-25
lines changed

4 files changed

+23
-25
lines changed

articles/event-hubs/event-hubs-diagnostic-logs.md

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,54 +15,52 @@ ms.topic: article
1515
ms.tgt_pltfrm: na
1616
ms.workload: data-services
1717
ms.custom: seodec18
18-
ms.date: 12/06/2018
18+
ms.date: 04/28/2020
1919
ms.author: shvija
2020

2121
---
2222
# Set up diagnostic logs for an Azure event hub
2323

2424
You can view two types of logs for Azure Event Hubs:
2525

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+
![Activity log for an Event Hubs namespace](./media/event-hubs-diagnostic-logs/activity-log.png)
2729
* **[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.
2830

31+
The following section shows you how to enable diagnostic logs for an Event Hubs namespace.
2932

3033
## Enable diagnostic logs
31-
3234
Diagnostic logs are disabled by default. To enable diagnostic logs, follow these steps:
3335

34-
1. In the [Azure portal](https://portal.azure.com), under **Monitoring + Management**, click **Diagnostics logs**.
35-
36-
![Pane navigation to diagnostic logs](./media/event-hubs-diagnostic-logs/image1.png)
37-
38-
2. Click the resource you want to monitor.
39-
40-
3. Click **Turn on diagnostics**.
41-
42-
![Turn on diagnostic logs](./media/event-hubs-diagnostic-logs/image2.png)
43-
44-
4. For **Status**, click **On**.
45-
46-
![Change the status of diagnostic logs](./media/event-hubs-diagnostic-logs/image3.png)
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**.
4738

48-
5. Set the archive target that you want; for example, a storage account, an event hub, or Azure Monitor logs.
39+
![Diagnostic settings page - add diagnostic setting](./media/event-hubs-diagnostic-logs/diagnostic-settings-page.png)
40+
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.
4942

50-
6. Save the new diagnostics settings.
43+
![Add diagnostic settings page](./media/event-hubs-diagnostic-logs/aDD-diagnostic-settings-page.png)
44+
6. Select **Save** on the toolbar to save the diagnostics settings.
5145

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.
5347

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).
5549

5650
## Diagnostic logs categories
5751

58-
Event Hubs captures diagnostic logs for two categories:
52+
Event Hubs captures diagnostic logs for the following categories:
5953

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.
6261

63-
## Diagnostic logs schema
6462

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.
6664

6765
## Archive logs schema
6866

66.9 KB
Loading
54.1 KB
Loading
77.1 KB
Loading

0 commit comments

Comments
 (0)