All DSP releases prior to DSP 1.4.0 use Gravity, a Kubernetes orchestrator, which has been announced end-of-life. We have replaced Gravity with an alternative component in DSP 1.4.0. Therefore, we will no longer provide support for versions of DSP prior to DSP 1.4.0 after July 1, 2023. We advise all of our customers to upgrade to DSP 1.4.0 before July 1, 2023 in order to continue to receive full product support from Splunk.
Deserialize and preview data from Kafka in DSP
When you use the Kafka source function to ingest data from an Apache Kafka or Confluent Kafka topic, the payloads of the incoming Kafka records are stored in a bytes field named
value. During data previews, Splunk Data Stream Processor displays the contents of bytes fields as base64-encoded values. To view the data as human-readable strings during data preview, you must deserialize the data.
value field also makes it usable as input in a wider variety of streaming functions, since most streaming functions do not accept bytes data as input. See the Function Reference manual for information about the data type that each function accepts as input.
To ingest data from Kafka into a DSP pipeline, you must have a connection to a Kafka broker. See the following pages for more information:
- Create a SASL-authenticated DSP connection to Kafka
- Create an SSL-authenticated DSP connection to Kafka
- Create an unauthenticated DSP connection to Kafka
- In DSP, select the Pipelines page.
- On the Pipelines page, click Create Pipeline.
- Select Kafka.
- Configure the Kafka function to use your Kafka connection and get data from your Kafka topic. See Get data from Kafka in the Function Reference manual.
- On the pipeline canvas, click the Connect a processing or a sink function icon () and then select Eval from the function picker.
- On the View Configurations tab, enter the following SPL2 expression in the Function field:
- Click the Start Preview icon () and click the Eval function on the pipeline canvas to confirm that the data in the
valuefield has been deserialized from bytes into strings.
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.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.4.3