Kafka

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.

Learn more
PostHog Wizard hedgehog

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

OptionDescription
Bootstrap servers
Type: text
Required: True

A comma-separated list of host:port pairs.

Authentication
Type: select
Required: True
Encryption
Type: select
Required: True
CA certificate
Type: textarea
Required: False

Only needed when a public certificate authority did not sign your brokers' certificates.

Message format
Type: select
Required: True

With JSON, the fields of each message become columns. With text, each message is stored whole in a value column.

Linking Kafka to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Kafka
  3. Fill in the required configuration fields
  4. 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.