Splunk® Data Stream Processor

Connect to Data Sources and Destinations with DSP

Acrobat logo Download manual as PDF


Acrobat logo Download topic as PDF

Connecting Kafka to your DSP pipeline as a data destination

If you have a Universal license for Splunk Data Stream Processor, you can connect to an Apache Kafka or Confluent Kafka broker and use it as a data destination. You can get data into a data pipeline, transform it, and then send the transformed data to a Kafka broker. See Licensing for the Splunk Data Stream Processor in the Install and administer the Data Stream Processor manual for information about licensing.

You can also use Kafka as a data source. See Connecting Kafka to your DSP pipeline as a data source for information about this use case.

DSP supports three types of connections for accessing Kafka brokers:

Kafka connection type Description
SASL-authenticated Username and password authentication is used. You can choose to protect your credentials using SCRAM (Salted Challenge Response Authentication Mechanism) or leave them in plaintext. The connection is encrypted using SSL.


This type of connection is suitable for use in production environments.

SSL-authenticated Two-way SSL authentication is used, so that DSP and the Kafka broker authenticate each other using the SSL protocol. Additionally, the connection is encrypted using SSL.


This type of connection is suitable for use in production environments.

Unauthenticated No authentication takes place between DSP and the Kafka broker. The connection is not encrypted.


This type of connection should only be used for testing purposes in a secure internal environment.

To connect to Kafka as a data destination, you must complete the following tasks:

  1. If the topic that you want to send data to does not already exist in your Kafka broker, create it.
    • For information about creating a topic in Apache Kafka, search for "Apache Kafka Quickstart" in the Apache Kafka documentation.
    • For information about creating a topic in Confluent Kafka, search for "Quick Start for Apache Kafka using Confluent Cloud" in the Confluent documentation.

    If you try to send data to a topic that does not already exist, the pipeline fails to send data to Kafka and restarts indefinitely.

  2. Create a connection that allows DSP to send data to your Kafka topic.
  3. Create a pipeline that ends with the Send to Kafka sink function. See the Building a pipeline chapter in the Use the Data Stream Processor manual for instructions on how to build a data pipeline.
  4. Configure the Send to Kafka sink function to use your Kafka connection and send data to an existing Kafka topic. See Send data to Kafka in the Function Reference manual.

When you activate the pipeline, the sink function starts sending data from the pipeline to the specified Kafka topic.

If your data fails to get into Kafka, check the connection settings to make sure you have the correct broker, as well as the correct credentials and certificates if you are using an authenticated connection. DSP doesn't run a check to see if you enter valid credentials.

Last modified on 25 March, 2022
PREVIOUS
Connecting Kafka to your DSP pipeline as a data source
  NEXT
Create a SASL-authenticated DSP connection to Kafka

This documentation applies to the following versions of Splunk® Data Stream Processor: 1.3.0, 1.3.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