Use the ingestion wizard to create an Azure Event Hubs data connection for Azure Data Explorer
Azure Data Explorer offers ingestion (data loading) from Event Hubs, a big data streaming platform and event ingestion service. Event hubs can process millions of events per second in near real-time. In this article, you connect an event hub to a table in Azure Data Explorer using the ingestion wizard.
- An Azure subscription. Create a free Azure account.
- Create a cluster and database.
- Event hub with data for ingestion.
To enable access between a cluster and a storage account without public access (restricted to private endpoint/service endpoint), see Create a Managed Private Endpoint.
The cluster and event hub should be associated with the same tenants, for different tenants please use SDKs
In the left menu of the Azure Data Explorer web UI, select the Data tab.
In the Ingest data from Event Hub card, select Ingest.
The Ingest data window opens with the Destination tab selected.
The Cluster and Database fields are auto-populated. You may select a different cluster or database from the drop-down menus.
Under Table, select New table and enter a name for the new table. Alternatively, use an existing table.
Table names must be between 1 and 1024 characters. You can use alphanumeric, hyphens, and underscores. Special characters aren't supported.
Select Next: Source.
Under Source type, select Event Hub.
Under Data Connection, fill in the following fields:
Setting Suggested value Field description Data connection name TestDataConnection The name that identifies your data connection. Subscription The subscription ID where the event hub resource is located. Event hub namespace The name that identifies your namespace. Event hub The event hub you wish to use. Consumer group The consumer group defined in your event hub. Event system properties Select relevant properties The event hub system properties. If there are multiple records per event message, the system properties will be added to the first one. When adding system properties, create or update table schema and mapping to include the selected properties.
Select Next: Schema.
Data is read from the event hub in form of EventData objects. Supported formats are CSV, JSON, PSV, SCsv, SOHsv TSV, TXT, and TSVE.
If the data you see in the preview window isn't complete, you may need more data to create a table with all necessary data fields. Use the following commands to fetch new data from your event hub:
- Discard and fetch new data: discards the data presented and searches for new events.
- Fetch more data: Searches for more events in addition to the events already found.
To see a preview of your data, your event hub must be sending events.
Select Next: Summary.
Continuous ingestion from Event Hubs
In the Continuous ingestion from Event Hub established window, all steps will be marked with green check marks when establishment finishes successfully. The cards below these steps give you options to explore your data with Quick queries, undo changes made using Tools, or Monitor the Event Hubs connections and data.
Submit and view feedback for