From 2167facbbe7a9a2a75e885bb056b29b90c6b77d2 Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Mon, 19 Feb 2024 16:52:39 +0100 Subject: [PATCH] Update Elastic-Agent Kafka settings This commit updates the documentation from the Kafka output on standalone Elastic-Agent settings by removing the options that are not supported any more. --- .../outputs/output-kafka.asciidoc | 57 +------------------ 1 file changed, 2 insertions(+), 55 deletions(-) diff --git a/docs/en/ingest-management/elastic-agent/configuration/outputs/output-kafka.asciidoc b/docs/en/ingest-management/elastic-agent/configuration/outputs/output-kafka.asciidoc index f17062320..132636f38 100644 --- a/docs/en/ingest-management/elastic-agent/configuration/outputs/output-kafka.asciidoc +++ b/docs/en/ingest-management/elastic-agent/configuration/outputs/output-kafka.asciidoc @@ -35,8 +35,7 @@ outputs: partition: round_robin: group_events: 1 - topics: - - topic: '%{[fields.log_topic]}' + topic: 'elastic-agent' headers: [] timeout: 30 broker_timeout: 30 @@ -196,7 +195,7 @@ include::output-shared-settings.asciidoc[tag=queue.mem.flush.timeout-setting] [[output-kafka-topics-settings]] == Topics settings -Use these options to dynamically set the Kafka topic for each {agent} event. +Use these options to set the Kafka topic for each {agent} event. [cols="2*> in the Elastic Agent processor syntax for condition descriptions. Currently the equals, contains, and regexp conditions are available. - -As an example for setting up your processors, you might want to route log events based on severity. To do so, you can specify a default topic for all events not matched by other processors: - -[source,yaml] ----- -outputs: - kafka-output: - type: kafka - hosts: - - 'kafka1:9092' - - 'kafka2:9092' - - 'kafka3:9092' - topics: - - topic: 'critical-%{[agent.version]}' - when: - contains: - message: ' “CRITICAL”' - - topic: 'error-%{[agent.version]}' - when: - contains: - message: ' “ERR”' - - topic: '%{[fields.log_topic]}' ----- - -All non-critical and non-error events will then route to the default `%{[fields.log_topic]}` topic. |===