-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc:Add attribute for kafka client versions #48
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
:plugin: kafka | ||
:type: output | ||
:default_codec: plain | ||
:kafka_client: 2.4 | ||
:kafka_client_doc: 24 | ||
|
||
/////////////////////////////////////////// | ||
START - GENERATED VARIABLES, DO NOT EDIT! | ||
|
@@ -23,9 +25,14 @@ include::{include_path}/plugin_header.asciidoc[] | |
|
||
Write events to a Kafka topic. | ||
|
||
This plugin uses Kafka Client 2.4. For broker compatibility, see the official https://cwiki.apache.org/confluence/display/KAFKA/Compatibility+Matrix[Kafka compatibility reference]. If the linked compatibility wiki is not up-to-date, please contact Kafka support/community to confirm compatibility. | ||
This plugin uses Kafka Client {kafka_client}. For broker compatibility, see the | ||
official | ||
https://cwiki.apache.org/confluence/display/KAFKA/Compatibility+Matrix[Kafka | ||
compatibility reference]. If the linked compatibility wiki is not up-to-date, | ||
please contact Kafka support/community to confirm compatibility. | ||
|
||
If you require features not yet available in this plugin (including client version upgrades), please file an issue with details about what you need. | ||
If you require features not yet available in this plugin (including client | ||
version upgrades), please file an issue with details about what you need. | ||
|
||
This output supports connecting to Kafka over: | ||
|
||
|
@@ -36,9 +43,12 @@ By default security is disabled but can be turned on as needed. | |
|
||
The only required configuration is the topic_id. | ||
|
||
The default codec is plain. Logstash will encode your events with not only the message field but also with a timestamp and hostname. | ||
The default codec is plain. Logstash will encode your events with not only the | ||
message field but also with a timestamp and hostname. | ||
|
||
If you want the full content of your events to be sent as json, you should set | ||
the codec in the output configuration like this: | ||
|
||
If you want the full content of your events to be sent as json, you should set the codec in the output configuration like this: | ||
[source,ruby] | ||
output { | ||
kafka { | ||
|
@@ -47,9 +57,11 @@ If you want the full content of your events to be sent as json, you should set t | |
} | ||
} | ||
|
||
For more information see https://kafka.apache.org/24/documentation.html#theproducer | ||
For more information see | ||
https://kafka.apache.org/{kafka_client_doc}/documentation.html#theproducer | ||
|
||
Kafka producer configuration: https://kafka.apache.org/24/documentation.html#producerconfigs | ||
Kafka producer configuration: | ||
https://kafka.apache.org/{kafka_client_doc}/documentation.html#producerconfigs | ||
|
||
[id="plugins-{type}s-{plugin}-options"] | ||
==== Kafka Output Configuration Options | ||
|
@@ -58,7 +70,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ | |
|
||
NOTE: Some of these options map to a Kafka option. Defaults usually reflect the Kafka default setting, | ||
and might change if Kafka's producer defaults change. | ||
See the https://kafka.apache.org/24/documentation for more details. | ||
See the https://kafka.apache.org/{kafka_client_doc}/documentation for more details. | ||
|
||
[cols="<,<,<",options="header",] | ||
|======================================================================= | ||
|
@@ -328,9 +340,9 @@ Kafka down, etc). | |
A value less than zero is a configuration error. | ||
|
||
Starting with version 10.5.0, this plugin will only retry exceptions that are a subclass of | ||
https://kafka.apache.org/25/javadoc/org/apache/kafka/common/errors/RetriableException.html[RetriableException] | ||
https://kafka.apache.org/{kafka_client_doc}/javadoc/org/apache/kafka/common/errors/RetriableException.html[RetriableException] | ||
and | ||
https://kafka.apache.org/25/javadoc/org/apache/kafka/common/errors/InterruptException.html[InterruptException]. | ||
https://kafka.apache.org/{kafka_client_doc}/javadoc/org/apache/kafka/common/errors/InterruptException.html[InterruptException]. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This link using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 most definitely - for correctness these should point to |
||
If producing a message throws any other exception, an error is logged and the message is dropped without retrying. | ||
This prevents the Logstash pipeline from hanging indefinitely. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yikes! Here's an oldie!