Skip to content

Commit

Permalink
Add docs for dynamic topics in Kafka output (#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilfoyle authored Oct 21, 2024
1 parent 787643d commit 7564c62
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,18 @@ Use this option to set the Kafka topic for each {agent} event.
[id="kafka-output-topics-default"]
**Default topic**

| Set a default topic to use for events sent by {agent} to the Kafka output, for example `elastic-agent`.
| Set a default topic to use for events sent by {agent} to the Kafka output.

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:

* `data_stream_type`
* `data_stream.dataset`
* `data_stream.namespace`
* `@timestamp`
* `event-dataset`

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.
Otherwise, setting a custom field is not recommended.

|===

Expand Down

0 comments on commit 7564c62

Please sign in to comment.