Kafka
Kafka (kafka)
Publish events to Kafka/Redpanda clusters.
Messaging binary json raw
Minimal example
output: kafka: bootstrap-servers: ""JSON
{ "output": { "kafka": { "bootstrap-servers": "" } }}Contents
Advanced
Advanced
| Field | Type | Required | Description |
|---|---|---|---|
global-options ✓ | map (string) | Additional librdkafka producer configuration. | |
topic-options ✓ | map (string) | Topic level overrides forwarded to librdkafka. |
Batching
Batching
| Field | Type | Required | Description |
|---|---|---|---|
batch | Batch | Logical batching hints shared with other outputs. |
Connection
Connection
| Field | Type | Required | Description |
|---|---|---|---|
bootstrap-servers | hostname (string) | ✅ | Comma separated bootstrap servers. Examples: example.com, localhost |
client-id | string | Optional producer client identifier. |
Partitioning
Partitioning
| Field | Type | Required | Description |
|---|---|---|---|
partitioner | Kafka Partitioner | Partitioning strategy for the producer. Allowed values: round-robin, hash-key, explicit | |
key-field | field (string) | Event field containing message key (used for partitioning). Examples: data_field | |
key-pointer | json-pointer (string) | JSON pointer to message key. | |
key-expression | string | Expression used to compute message key. | |
partition-field | field (string) | Event field providing explicit partition. Examples: data_field | |
partition-pointer | json-pointer (string) | JSON pointer providing explicit partition. | |
partition-value ✓ | string | Static partition value when using explicit partitioner. |
Payload
Payload
| Field | Type | Required | Description |
|---|---|---|---|
topic | string | Static topic name. | |
topic-field | field (string) | Event field containing the target topic. Examples: data_field | |
topic-pointer | json-pointer (string) | JSON pointer resolving to target topic. | |
input-field | field (string) | Optional event field to treat as payload instead of entire event. Examples: data_field | |
headers ✓ | map (string) | Message headers to attach to each record. | |
payload | Kafka Payload Format | Encoding strategy for message payloads. Allowed values: json, raw, avro-bridge | |
avro | Schema Registry | Schema registry configuration required when payload=avro-bridge. |
Performance
Performance
| Field | Type | Required | Description |
|---|---|---|---|
linger-ms | number (integer) | Linger time before flushing a batch (ms). Examples: 42, 1.2e-10 | |
message-timeout-ms | number (integer) | Timeout waiting for delivery reports (ms). Examples: 42, 1.2e-10 | |
compression | Kafka Compression | Compression codec used by the producer. Allowed values: none, gzip, snappy, lz4, zstd |
Reliability
Reliability
| Field | Type | Required | Description |
|---|---|---|---|
retry | Retry | Retry policy for failed deliveries. | |
acks | Kafka Acknowledgements | Acknowledgement requirement. Allowed values: none, leader, all | |
idempotent ✓ | boolean (bool) | Enable Kafka idempotent producer mode. Default: false | |
max-in-flight | number (integer) | Maximum in-flight requests per connection (relevant for idempotency). Examples: 42, 1.2e-10 |
Security
Security
| Field | Type | Required | Description |
|---|---|---|---|
auth | Kafka Authentication | Authentication and TLS configuration. |
Schema
- Batch Fields
- Schema Registry Fields
- Retry Fields
- Kafka Authentication - Kafka SASL Fields
- Kafka Authentication - Kafka TLS Fields
- Kafka Authentication Fields
- Global Options Table
- Topic Options Table
- Headers Table
- Kafka Authentication - Kafka SASL - Extensions Table
- Kafka Authentication - Config Table
- Batch - Mode Options
- Kafka Partitioner Options
- Kafka Payload Format Options
- Kafka Compression Options
- Kafka Acknowledgements Options
- Kafka Authentication - Kafka SASL - Kafka SASL Mechanism Options
Batch Fields
| Field | Type | Required | Description |
|---|---|---|---|
fixed-size ✓ | number (integer) | maximum number of events in an output batch. Examples: 42, 1.2e-10 | |
mode | Mode | ✅ | If ‘document’ send on end of document generated by input. If ‘fixed’, use fixed_size.Allowed values: fixed, document |
timeout | time-interval (string) | ✅ | interval after which the batch is sent, to keep throughput going (default 100ms). Default: 100msExamples: 500ms, 2h |
header | multiline-text (string) | put a header line before the batch. | |
footer | multiline-text (string) | put a header line after the last line of the batch. | |
use-document-marker ✓ | boolean (bool) | Enrich the job metadata with a document marker (for document handling in batch mode). Default: false | |
wrap-as-json ✓ | boolean (bool) | Format the output batch as a JSON array. Default: false |
Schema Registry Fields
| Field | Type | Required | Description |
|---|---|---|---|
url | url (string) | ✅ | Examples: https://example.com/path |
username | string | ||
password | string | ||
access-token | string | ||
subject-suffix | string | Optional suffix appended to subject names (e.g. -value). | |
use-latest ✓ | boolean (bool) | When true, fetch the latest compatible schema instead of an explicit version. Default: false |
Retry Fields
| Field | Type | Required | Description |
|---|---|---|---|
timeout | time-interval (string) | ✅ | timeout (e.g. 500ms, 2s etc. - default is 30). Examples: 500ms, 2h |
retries | number (integer) | number of retries. Examples: 42, 1.2e-10 |
Kafka Authentication - Kafka SASL Fields
| Field | Type | Required | Description |
|---|---|---|---|
mechanism | Kafka SASL Mechanism | ✅ | Allowed values: plain, scram-sha256, scram-sha512, o-auth-bearer |
username ✓ | string | ||
password ✓ | string | ||
token ✓ | string | ||
token-command ✓ | string | ||
extensions ✓ | map (string) |
Kafka Authentication - Kafka TLS Fields
| Field | Type | Required | Description |
|---|---|---|---|
ca-certificate | string | ||
client-certificate | string | ||
client-key | string | ||
insecure-skip-verify ✓ | boolean (bool) | Default: false |
Kafka Authentication Fields
| Field | Type | Required | Description |
|---|---|---|---|
sasl | Kafka SASL | ||
tls | Kafka TLS | ||
config ✓ | map (string) | Additional librdkafka configuration forwarded verbatim. |
Global Options Table
| Option | Value |
|---|---|
option.name | value |
Value format: templated-text.
Topic Options Table
| Topic option | Value |
|---|---|
option.name | value |
Value format: templated-text.
Headers Table
| Header | Value |
|---|---|
Header-Name | value |
Value format: templated-text.
Kafka Authentication - Kafka SASL - Extensions Table
| Extension | Value |
|---|---|
key | value |
Value format: templated-text.
Kafka Authentication - Config Table
| Option | Value |
|---|---|
option.name | value |
Value format: templated-text.
Batch - Mode Options
| Value | Name | Description |
|---|---|---|
fixed | fixed | Fixed |
document | document | Document |
Kafka Partitioner Options
| Value | Name | Description |
|---|---|---|
round-robin | round-robin | Round Robin |
hash-key | hash-key | Hash Key |
explicit | explicit | Explicit |
Kafka Payload Format Options
| Value | Name | Description |
|---|---|---|
json | json | Json |
raw | raw | Raw |
avro-bridge | avro-bridge | Avro Bridge |
Kafka Compression Options
| Value | Name | Description |
|---|---|---|
none | none | None |
gzip | gzip | Gzip |
snappy | snappy | Snappy |
lz4 | lz4 | Lz4 |
zstd | zstd | Zstd |
Kafka Acknowledgements Options
| Value | Name | Description |
|---|---|---|
none | none | None |
leader | leader | Leader |
all | all | All |
Kafka Authentication - Kafka SASL - Kafka SASL Mechanism Options
| Value | Name | Description |
|---|---|---|
plain | plain | Plain |
scram-sha256 | scram-sha256 | Scram Sha256 |
scram-sha512 | scram-sha512 | Scram Sha512 |
o-auth-bearer | o-auth-bearer | O Auth Bearer |