On October 30, 2022, all 1.2.x versions of the Splunk Data Stream Processor will reach its end of support date. See the Splunk Software Support Policy for details.
Deserialize and preview data from Kafka in DSP
When you create a data pipeline in Splunk Data Stream Processor (DSP) to ingest data from an Apache Kafka or Confluent Kafka topic using the Kafka 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.
To ingest data from Kafka into a DSP pipeline, you must have a connection to a Kafka broker. See Create an SSL-authenticated DSP connection to Kafka or Create an unauthenticated DSP connection to Kafka.
- From the Data Stream Processor home page, click Build Pipeline and then select Kafka as your source function.
- Configure the Kafka function to use your Kafka connection and get data from your Kafka topic. See Get data from Kafka.
- On the pipeline canvas, click the + icon next to the Kafka function and then select Eval from the function picker.
- On the View Configurations tab, enter the following SPL2 expression in the function field:
- Click Start Preview and click the Eval function on the pipeline canvas to confirm that the data in the
valuefield has been deserialized from bytes into strings.
- (Optional) Click Stop Preview and continue building your pipeline by adding new functions to it.
Create an unauthenticated DSP connection to Kafka
Connecting Apache Pulsar to your DSP pipeline as a data source
This documentation applies to the following versions of Splunk® Data Stream Processor: 1.2.0, 1.2.1-patch02, 1.2.1, 1.2.2-patch02, 1.2.4, 1.2.5