---
title: Kafka Integration
slug: uns/kafka-integration
docTags: 
createdAt: 2025-01-24T19:33:04.565Z
---

Follow these steps to set up the integration with Kafka connector.

## Before You Begin

You will need the following:

- Access to a Kafka broker. Refer to the following links to learn more: [Apache Kafka Download](https://kafka.apache.org/downloads)
- The CA certificate and other required authentication parameters needed to access the broker. &#x20;

## Step 1: Edit Kafka Connector

**To configure Kafka integration in Litmus UNS:**

1. Navigate to **Integrations** from the side menu.
   The *Integration&#x20;*&#x70;ane appears.
2. To add a new configuration or edit an existing configuration, click **Edit**.
   The *Edit Kafka Connector&#x20;*&#x64;ialog box appears.

   ::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/cwgK0ofhi77vY_OGGXima_image.png" size="70" width="986" height="525" position="center" caption="Integration pane" showCaption="true"}
3. Enter the following connection details:
   - **Brokers List**: Add the Kafka broker address (e.g., `10.17.10.49:9092`).
   - **Enable Toggle**: Turn the connector on or off.
   - **SASL Mechanism**: Choose the type (*None*, *SASL Plain*, *SCRAM-SHA-256*, *SCRAM-SHA-512*).
   - **Username and Password**: Add these if the broker requires them.
   - **Timeout (seconds)**: Set how long to wait when connecting.
   - **Compression**: Choose a method (*None*, *Gzip*, *Lz4*, *Snappy*, *Zstd*).
   - **Required Acks**: Pick acknowledgment settings (*None*, *All*, *Leader*).
   - Turn on the **Require SSL** option if needed for secure communication.
   - **Topic Mapping:&#x20;**&#x43;lick the **+** icon and add MQTT topics with Kafka topics. Wildcards can be used.
4. Click **Save** to apply the settings.

   ::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/tv6vkNfUInzJ8fs0eCr7c_image.png" size="74" width="1146" height="743" position="center" caption="Edit Kafka Connector dialog box" showCaption="true"}

## Step 2: Enable the Connector

After adding the connector, click the toggle in the connector tile to enable it.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/htbeOgdQLZzqLK3seUtqf_image.png" size="50" width="690" height="515" position="center" caption="Kafka Connector" showCaption="true"}

## Step 3: Verify Connection

Access the Kafka broker and verify that Litmus UNS is successfully sending data.&#x20;
