Kafka
Kafka (kafka)
Section titled “Kafka (kafka)”Publish events to Kafka/Redpanda clusters.
Messaging Enterprise edition binary json raw
Minimal example
Section titled “Minimal example”output: kafka: bootstrap-servers: ""JSON
{ "output": { "kafka": { "bootstrap-servers": "" } }}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
Advanced
Section titled “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
Section titled “Batching”Batching
| Field | Type | Required | Description |
|---|---|---|---|
batch |
Batch |
Logical batching hints shared with other outputs. |
Connection
Section titled “Connection”Connection
| Field | Type | Required | Description |
|---|---|---|---|
bootstrap-servers |
comma-delimited-strings (string) |
✅ | Comma separated bootstrap servers. Examples: one,two,three |
client-id |
string |
Optional producer client identifier. |
Partitioning
Section titled “Partitioning”Partitioning
| Field | Type | Required | Description |
|---|---|---|---|
partitioner |
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
Section titled “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 |
Payload |
Encoding strategy for message payloads. Allowed values: json, raw, avro-bridge |
|
avro |
Avro |
Schema registry configuration required when payload=avro-bridge. |
Performance
Section titled “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 |
Compression |
Compression codec used by the producer. Allowed values: none, gzip, snappy, lz4, zstd |
Reliability
Section titled “Reliability”Reliability
| Field | Type | Required | Description |
|---|---|---|---|
retry |
Retry |
Retry policy for failed deliveries. | |
acks |
Acks |
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
Section titled “Security”Security
| Field | Type | Required | Description |
|---|---|---|---|
auth |
Auth |
Authentication and TLS configuration. |
Schema
Section titled “Schema”- Batch Fields
- Avro Fields
- Retry - Backoff Fields
- Retry Fields
- Auth - Sasl Fields
- Auth - Tls Fields
- Auth Fields
- Global Options Table
- Topic Options Table
- Headers Table
- Auth - Sasl - Extensions Table
- Auth - Config Table
- Batch - Mode Options
- Partitioner Options
- Payload Options
- Compression Options
- Retry - Backoff - Strategy Options
- Acks Options
- Auth - Sasl - Mechanism Options
Batch Fields
Section titled “Batch Fields”| Field | Type | Required | Description |
|---|---|---|---|
fixed-size ✓ |
number (integer) |
maximum number of events in an output batch. Examples: 42, 1.2e-10 |
|
max-bytes ✓ |
number (integer) |
Close the batch before adding an event that would make the serialized request payload exceed this many bytes. 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 |
Avro Fields
Section titled “Avro 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 - Backoff Fields
Section titled “Retry - Backoff Fields”| Field | Type | Required | Description |
|---|---|---|---|
strategy |
Strategy |
Backoff strategy to use (default exponential). Allowed values: exponential, linear, fixed |
|
base |
string |
Base delay before retrying (e.g. “200ms”). | |
max |
string |
Maximum delay between retries. | |
jitter ✓ |
boolean (bool) |
Whether to add jitter to retry delays. Default: false |
Retry Fields
Section titled “Retry Fields”| Field | Type | Required | Description |
|---|---|---|---|
max-attempts |
number (integer) |
Maximum attempts before giving up. Examples: 42, 1.2e-10 |
|
forever ✓ |
boolean (bool) |
Retry indefinitely until cancelled. Default: false |
|
backoff |
Backoff |
Backoff strategy configuration. |
Auth - Sasl Fields
Section titled “Auth - Sasl Fields”| Field | Type | Required | Description |
|---|---|---|---|
mechanism |
Mechanism |
✅ | Allowed values: plain, scram-sha256, scram-sha512, o-auth-bearer |
username ✓ |
string |
||
password ✓ |
string |
||
token ✓ |
string |
||
token-command ✓ |
string |
||
extensions ✓ |
map (string) |
Auth - Tls Fields
Section titled “Auth - Tls Fields”| Field | Type | Required | Description |
|---|---|---|---|
ca-certificate |
string |
||
client-certificate |
string |
||
client-key |
string |
||
insecure-skip-verify ✓ |
boolean (bool) |
Default: false |
Auth Fields
Section titled “Auth Fields”| Field | Type | Required | Description |
|---|---|---|---|
sasl |
Sasl |
||
tls |
Tls |
||
config ✓ |
map (string) |
Additional librdkafka configuration forwarded verbatim. |
Global Options Table
Section titled “Global Options Table”| Option | Value |
|---|---|
option.name |
value |
Value format: templated-text.
Topic Options Table
Section titled “Topic Options Table”| Topic option | Value |
|---|---|
option.name |
value |
Value format: templated-text.
Headers Table
Section titled “Headers Table”| Header | Value |
|---|---|
Header-Name |
value |
Value format: templated-text.
Auth - Sasl - Extensions Table
Section titled “Auth - Sasl - Extensions Table”| Extension | Value |
|---|---|
key |
value |
Value format: templated-text.
Auth - Config Table
Section titled “Auth - Config Table”| Option | Value |
|---|---|
option.name |
value |
Value format: templated-text.
Batch - Mode Options
Section titled “Batch - Mode Options”| Value | Aliases | Name | Description |
|---|---|---|---|
fixed |
fixed | ||
document |
document |
Partitioner Options
Section titled “Partitioner Options”| Value | Aliases | Name | Description |
|---|---|---|---|
round-robin |
round-robin | ||
hash-key |
hash-key | ||
explicit |
explicit |
Payload Options
Section titled “Payload Options”| Value | Aliases | Name | Description |
|---|---|---|---|
json |
json | ||
raw |
raw | ||
avro-bridge |
avro-bridge |
Compression Options
Section titled “Compression Options”| Value | Aliases | Name | Description |
|---|---|---|---|
none |
none | ||
gzip |
gzip | ||
snappy |
snappy | ||
lz4 |
lz4 | ||
zstd |
zstd |
Retry - Backoff - Strategy Options
Section titled “Retry - Backoff - Strategy Options”| Value | Aliases | Name | Description |
|---|---|---|---|
exponential |
exponential | ||
linear |
linear | ||
fixed |
fixed |
Acks Options
Section titled “Acks Options”| Value | Aliases | Name | Description |
|---|---|---|---|
none |
none | ||
leader |
leader | ||
all |
all |
Auth - Sasl - Mechanism Options
Section titled “Auth - Sasl - Mechanism Options”| Value | Aliases | Name | Description |
|---|---|---|---|
plain |
plain | ||
scram-sha256 |
scram-sha256 | ||
scram-sha512 |
scram-sha512 | ||
o-auth-bearer |
o-auth-bearer |