
Kafka
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Kafka to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Import the messages of your Kafka topics. Each topic becomes a table, and each sync reads the messages written since the last one. Message values must be JSON or plain text. PostHog connects to every broker your cluster advertises, so each one must be reachable from the internet.
Configuration
| Option | Description |
|---|---|
Bootstrap serversType: text Required: True | A comma-separated list of |
AuthenticationType: select Required: True | |
EncryptionType: select Required: True | |
CA certificateType: textarea Required: False | Only needed when a public certificate authority did not sign your brokers' certificates. |
Message formatType: select Required: True | With JSON, the fields of each message become columns. With text, each message is stored whole in a |
Linking Kafka to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Kafka
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
The tables available from this source are discovered from your account when you connect it, so the exact list depends on your data. Once connected, you can pick which tables to sync from the sources tab.