> For the complete documentation index, see [llms.txt](https://docs.akenza.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.akenza.io/device-management/your-data-flow/connectors/streaming/apache-kafka.md).

# Apache Kafka

Process data on Event Hubs as Apache Kafka compatible ecosystem

The **Apache** **Kafka Output connector** can be used to forward data to **Event Hubs**, which provides an endpoint compatible with the **Apache Kafka® producer** and **consumer APIs**. The Kafka connector is available on both **Data Flow** and **Rule Engine**.

The Kafka connector requires at least one **kafka bootstrap server** to be provided in a comma-separated list. It also requires **kafka topic** to which the data will be sent.

For the authentication, a simple username/password authentication mechanism, values for Security Protocol (SASL\_SSL) and SASL mechanism (PLAIN) are fixed and not editable.

Username ($ConnectionString) and password (value of connection string for the event hub namespace) only need to be provided in order to authenticate.

{% hint style="info" %}
Optionally: The custom payload can be selected for making use of templated payload in the desired structure. If the custom payload is not selected, the whole data sample will be forwarded.
{% endhint %}

A tutorial about "How to send data to Event Hubs with Apache Kafka" can be found [here](/tutorials/create-enterprise-solutions/how-to-send-data-to-event-hubs-with-apache-kafka.md).

![Apache Kafka template](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FZTEAbkyy0V1tpuy0cYOS%2Fscreely-1685092868713.png?alt=media\&token=b20bc003-d413-4463-8b60-e403c79c179d)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.akenza.io/device-management/your-data-flow/connectors/streaming/apache-kafka.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
