Connecting Microsoft Azure Event Hubs to your DSP pipeline as a data source
When creating a data pipeline in the , you can connect to Microsoft Azure Event Hubs and use it as a data source. You can get data from an event hub into a pipeline, transform the data as needed, and then send the transformed data out from the pipeline to a destination of your choosing.
To connect to Azure Event Hubs as a data source, you must complete the following tasks:
- If the event hub that you want to get data from does not have a consumer group that can be used solely by your DSP pipeline, create one. See the Using a dedicated consumer group for each pipeline section on this page for more information about this best practice.
- Create a connection that allows DSP to access your Azure Event Hubs data. See Create a DSP connection to Microsoft Azure Event Hubs.
- Create a pipeline that starts with the Microsoft Azure Event Hubs source function. See the Building a pipeline chapter in the Use the Data Stream Processor manual for instructions on how to build a data pipeline.
- Configure the Microsoft Azure Event Hubs source function to use your Azure Event Hubs connection. See Get data from Microsoft Azure Event Hubs in the Function Reference manual.
- (Optional) Convert the
bodyfield in the Azure Event Hubs records from bytes to a more commonly supported data type such as string. This conversion makes the field human-readable during data preview and compatible with a wider range of streaming functions. See Deserialize and preview data from Microsoft Azure Event Hubs in DSP.
When you activate the pipeline, the source function starts collecting data from Azure Event Hubs.
Using a dedicated consumer group for each pipeline
To avoid connection failures that can occur when too many receivers try to connect to Azure Event Hubs through the same consumer group, use a dedicated consumer group for each data pipeline that gets data from Azure Event Hubs.
The Connector for Microsoft Azure Event Hubs Source uses a non-epoch receiver to retrieve data from an event hub through a consumer group. A consumer group can support up to five concurrent non-epoch receivers. If you are using the same consumer group across multiple pipelines, or if you have other programs connecting using this consumer group, then your pipeline can fail to connect. In addition, if an epoch-based receiver connects through the same consumer group, connections for non-epoch based receivers will be rejected.
Create a DSP connection to Microsoft 365
Connecting Microsoft Azure Event Hubs to your DSP pipeline as a data destination (Beta)
This documentation applies to the following versions of Splunk® Data Stream Processor: 1.3.0, 1.3.1, 1.4.0
Feedback submitted, thanks!