From 29996a699e6c6300cd71880393fdc99455a8777d Mon Sep 17 00:00:00 2001 From: Ry Biesemeyer Date: Wed, 10 Jul 2024 17:06:27 +0000 Subject: [PATCH 1/2] docs: clarify limitations of header decoration --- docs/input-kafka.asciidoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/input-kafka.asciidoc b/docs/input-kafka.asciidoc index a6b0e5f..dc73c02 100644 --- a/docs/input-kafka.asciidoc +++ b/docs/input-kafka.asciidoc @@ -286,6 +286,8 @@ This will add a field named `kafka` to the logstash event containing the followi * `offset`: The offset from the partition this message is associated with * `key`: A ByteBuffer containing the message key +NOTE: When adding headers, only headers whose values are valid UTF-8 byte sequences are included. + If an event has multiple headers with the same key, at most one will be included. [id="plugins-{type}s-{plugin}-auto_create_topics"] ===== `auto_create_topics`  From 9cdae1268b9a8e84f75b61b307ad95560cfcd843 Mon Sep 17 00:00:00 2001 From: Ry Biesemeyer Date: Mon, 15 Jul 2024 10:18:25 -0700 Subject: [PATCH 2/2] Update docs/input-kafka.asciidoc Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> --- docs/input-kafka.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/input-kafka.asciidoc b/docs/input-kafka.asciidoc index dc73c02..afd27ae 100644 --- a/docs/input-kafka.asciidoc +++ b/docs/input-kafka.asciidoc @@ -286,7 +286,7 @@ This will add a field named `kafka` to the logstash event containing the followi * `offset`: The offset from the partition this message is associated with * `key`: A ByteBuffer containing the message key -NOTE: When adding headers, only headers whose values are valid UTF-8 byte sequences are included. +NOTE: Only headers whose values are valid UTF-8 byte sequences are included. If an event has multiple headers with the same key, at most one will be included. [id="plugins-{type}s-{plugin}-auto_create_topics"]