Skip to content

Commit da4a82c

Browse files
authored
Merge pull request #285433 from axisc/eh-explorer
Event Hubs data explorer
2 parents 7384292 + 476ce71 commit da4a82c

File tree

9 files changed

+111
-0
lines changed

9 files changed

+111
-0
lines changed

articles/event-hubs/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
- name: Stream data into Azure Databricks using Event Hubs
9494
href: /azure/databricks/scenarios/databricks-stream-from-eventhubs
9595
maintainContext: true
96+
- name: Use Event Hubs Data Explorer to run data operations on Azure Event Hubs
97+
href: event-hubs-data-explorer.md
9698
- name: Samples
9799
items:
98100
- name: Code samples
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
title: Overview of the Event Hubs Data Explorer
3+
description: This article provides an overview of the Event Hubs Data Explorer, which provides an easy way to send data to and receive data from Azure Event Hubs.
4+
ms.topic: article
5+
ms.date: 08/22/2024
6+
---
7+
8+
# Use Event Hubs Data Explorer to run data operations on Event Hubs
9+
10+
Azure Event Hubs is a scalable event processing service that ingests and processes large volumes of events and data, with low latency and high reliability. For a high-level overview of the service, see [What is Event Hubs?](event-hubs-about.md).
11+
12+
Developers and Operators are often looking for an easy tool to send sample data to their event hub to test the end-to-end flow, or view events at a specific offset (or point in time) for light debugging, often after the fact. The Event Hubs Data Explorer makes these common workflows simple by eliminating the need to write bespoke client applications to test and inspect the data on the event hub.
13+
14+
This article highlights the functionality of Azure Event Hubs Data explorer that is made available on the Azure portal.
15+
16+
Operations run on an Azure Event Hubs namespace are of two kinds.
17+
18+
* Management Operations - Create, update, delete of Event Hubs namespace, and event hubs.
19+
* Data Operations - Send and view events from an event hub.
20+
21+
> [!IMPORTANT]
22+
> * The Event Hubs Data Explorer doesn't support **management operations**. The event hub must be created before the data explorer can send or view events from that event hub.
23+
> * While events payloads (known as **values** in Kafka) sent using the **Kafka protocol** will be visible via the data explorer, the **key** for the specific event will not be visible.
24+
> * We advise against using the Event Hubs Data Explorer for larger messages, as this may result in timeouts, depending on the message size, network latency between client and Service Bus service etc. Instead, we recommend that you use your own client to work with larger messages, where you can specify your own timeout values.
25+
>
26+
27+
## Prerequisites
28+
29+
To use the Event Hubs Data Explorer tool, [create an Azure Event Hubs namespace and an event hub](event-hubs-create.md).
30+
31+
## Use the Event Hubs Data Explorer
32+
33+
To use the Event Hubs data explorer, navigate to the Event Hubs namespace on which you want to perform the data operations.
34+
35+
Either navigate to the `Data Explorer` directly where you can pick the event hub, or pick the event hub from the `entities` and then pick the `Data Explorer` from the navigation menu.
36+
37+
:::image type="content" source="./media/event-hubs-data-explorer/left-pane-nav.png" alt-text="Screenshot showing the left pane nav with 'Data Explorer' selected.":::
38+
39+
### Send Events
40+
41+
You can send either custom payloads, or precanned datasets to the selected event hub using the `Send events` experience.
42+
43+
To do so, select the `send events` button, which enables the right pane.
44+
45+
:::image type="content" source="./media/event-hubs-data-explorer/select-send-events.png" alt-text="Screenshot showing the data explorer pane with 'Send events' selected.":::
46+
47+
48+
#### Sending custom payload
49+
50+
To send a custom payload -
51+
1. **Select Dataset** - Pick `Custom payload`.
52+
2. Select the **Content-Type**, from either `Text/Plain`, `JSON`, or `XML`.
53+
3. Either upload a JSON file, or type out the payload in the **Enter payload** box.
54+
4. **[Optional]** Specify system properties.
55+
5. **[Optional]** Specify custom properties - available as key-value pair.
56+
6. **[Optional]** If you wish to send multiple payloads, check the **Repeat send** box, and specify the **Repeat send count** (that is, the number of payloads to send) and the **Interval between repeat send in ms**.
57+
58+
Once the payload details are defined, select **Send** to send the event payload as defined.
59+
60+
:::image type="content" source="./media/event-hubs-data-explorer/send-event.png" alt-text="Screenshot showing the send event experience for custom payload.":::
61+
62+
63+
#### Sending precanned dataset
64+
65+
To send event payloads from a precanned dataset -
66+
1. **Select Dataset** - Pick an option from the **Pre canned datasets**, for example, Yellow taxi, Weather data, and others.
67+
2. **[Optional]** Specify system properties.
68+
3. **[Optional]** Specify custom properties - available as key-value pairs.
69+
4. **[Optional]** If you wish to send multiple payloads, check the **Repeat send** box, and specify the **Repeat send count** (that is, the number of payloads to send) and the **Interval between repeat send in ms**.
70+
71+
Once the payload details are defined, select **Send** to send the event payload as defined.
72+
73+
:::image type="content" source="./media/event-hubs-data-explorer/send-pre-canned-payload.png" alt-text="Screenshot showing the send event experience for precanned payload.":::
74+
75+
76+
### View Events
77+
78+
Event Hubs data explorer enables viewing the events to inspect the data that fit the criteria.
79+
80+
To view events, you can define the below properties, or rely on the default -
81+
82+
:::image type="content" source="./media/event-hubs-data-explorer/view-event-menu.png" alt-text="Screenshot showing the data explorer menu with view events selected.":::
83+
84+
85+
1. **PartitionID** - Pick either a specific partition or select *All partition IDs*.
86+
2. **Consumer Group** - Pick the *$Default* or another consumer group, or create one on the fly.
87+
3. **Event position** - Pick the *oldest position* (that is, the start of the event hub), *Newest position* (that is, latest), *Custom position* (for a specific offset, sequence number or timestamp).
88+
4. **Advanced properties** - Specify the *maximum batch size* and *maximum wait time in seconds*.
89+
90+
Once the above options are set, select **View events** to pull the events and render them on the data explorer.
91+
92+
:::image type="content" source="./media/event-hubs-data-explorer/grid-of-events.png" alt-text="Screenshot showing the grid of events.":::
93+
94+
95+
Once the events are loaded, you can select **View next events** to pull events using the same query again, or **Clear all** to refresh the grid.
96+
97+
### Download event payload
98+
99+
When viewing the events on a given event hub, the event payload can be downloaded for further review.
100+
101+
To download the event payload, select the specific event and select the **download** button displayed above the event payload body.
102+
103+
:::image type="content" source="./media/event-hubs-data-explorer/download-event-body.png" alt-text="Screenshot showing the grid of events with selected event and highlighted download event button.":::
104+
105+
106+
## Next steps
107+
108+
* Learn more about [Event Hubs](event-hubs-about.md).
109+
* Check out [Event Hubs features and terminology](event-hubs-features.md)
130 KB
Loading
172 KB
Loading
27.1 KB
Loading
25.7 KB
Loading
32.1 KB
Loading
56.2 KB
Loading
26.3 KB
Loading

0 commit comments

Comments
 (0)