Skip to content

Commit 7564c62

Browse files
authored
Add docs for dynamic topics in Kafka output (#1384)
1 parent 787643d commit 7564c62

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/en/ingest-management/fleet/fleet-settings-output-kafka.asciidoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,18 @@ Use this option to set the Kafka topic for each {agent} event.
219219
[id="kafka-output-topics-default"]
220220
**Default topic**
221221

222-
| Set a default topic to use for events sent by {agent} to the Kafka output, for example `elastic-agent`.
222+
| Set a default topic to use for events sent by {agent} to the Kafka output.
223+
224+
You can set a static topic, for example `elastic-agent`, or you can choose to set a topic dynamically based on an {ecs-ref}/ecs-reference.html[Elastic Common Scheme (ECS)] field. Available fields include:
225+
226+
* `data_stream_type`
227+
* `data_stream.dataset`
228+
* `data_stream.namespace`
229+
* `@timestamp`
230+
* `event-dataset`
231+
232+
You can also set a custom field. This is useful if you're using the <<add_fields-processor,`add_fields` processor>> as part of your {agent} input.
233+
Otherwise, setting a custom field is not recommended.
223234

224235
|===
225236

0 commit comments

Comments
 (0)