Skip to content

Commit

Permalink
[libbeat] Kafka output documentation fix (elastic#14333)
Browse files Browse the repository at this point in the history
  • Loading branch information
faec authored and jorgemarey committed Dec 13, 2019
1 parent 4abae32 commit 1668689
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libbeat/docs/outputs/output-kafka.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ the specified string:
------------------------------------------------------------------------------
output.kafka:
hosts: ["localhost:9092"]
topic: "logs-%{[beat.version]}"
topic: "logs-%{[beat.version]}"
topics:
- topic: "critical-%{[beat.version]}"
when.contains:
Expand All @@ -139,7 +139,11 @@ This configuration results in topics named +critical-{version}+,

===== `key`

Optional Kafka event key. If configured, the event key must be unique and can be extracted from the event using a format string.
Optional formatted string specifying the Kafka event key. If configured, the
event key can be extracted from the event using a format string.

See the Kafka documentation for the implications of a particular choice of key;
by default, the key is chosen by the Kafka cluster.

===== `partition`

Expand Down

0 comments on commit 1668689

Please sign in to comment.