Splunk® Data Stream Processor

Connect to Data Sources and Destinations with DSP

Acrobat logo Download manual as PDF


Acrobat logo Download topic as PDF

Deserialize and preview data from Microsoft Azure Event Hubs in DSP

When you create a data pipeline in the to ingest data from Microsoft Azure Event Hubs using the Microsoft Azure Event Hubs source function, the ingested data is encoded as bytes. To view the data as human-readable strings during data preview, you must deserialize the data.

Prerequisites

To ingest data from Azure Event Hubs into a DSP pipeline, you must have a connection to an event hub. See Create a DSP connection to Microsoft Azure Event Hubs.

Steps

  1. From the home page, click Build Pipeline and then select Microsoft Azure Event Hubs as your data source.
  2. Configure the Microsoft Azure Event Hubs source function to use your Azure Event Hubs connection and get data from your event hub. See Get data from Microsoft Azure Event Hubs in the Function Reference manual.
  3. On the pipeline canvas, click the + icon next to the Microsoft Azure Event Hubs function and then select Eval from the function picker.
  4. On the View Configurations tab, enter the following SPL2 expression in the function field:
    body = deserialize_json_object(body)
    
  5. Click Start Preview and click the Eval function on the pipeline canvas to confirm that the data in the body field has been deserialized from bytes into strings.
  6. (Optional) Click Stop Preview and continue building your pipeline by adding new functions to it.
Last modified on 09 December, 2020
PREVIOUS
Create a DSP connection to Microsoft Azure Event Hubs
  NEXT
Connecting Microsoft Azure Monitor to your DSP pipeline

This documentation applies to the following versions of Splunk® Data Stream Processor: 1.2.0, 1.2.1


Was this documentation topic helpful?

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters