-
Notifications
You must be signed in to change notification settings - Fork 152
Update the topic description of the Kafka output docs to fix some errors #3356
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
base: main
Are you sure you want to change the base?
Conversation
🔍 Preview links for changed docs |
89ce8af
to
6a3da73
Compare
@Supplementing, could you please have a look at the changes and the comments in this PR to make sure the information I have is correct for the Kafka output settings for Fleet-managed agents and for the standalone agents? Thank you! |
* `event.dataset` | ||
|
||
You can also set a custom field. This is useful if you need to construct a more complex or structured topic name. | ||
You can also set a custom field. This is useful if you need to construct a more complex or structured topic name. For example, you can use the `fields.kafka_topic` custom field to set a dynamic topic for each event. |
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.
This is the Kafka output doc under “Manage Elastic Agents in Fleet”. The description here needs to match what the user enters in the field on the UI, under Kafka output > Topics > Default topic > Dynamic Topic > Topic from field(s)
I wasn’t sure whether the user needs to wrap the custom field in ${}
or %{[]}
on the UI, but seeing that the dropdown list contained the ECS fields without these characters, I used the plain fields.kafka_topic
here. Is that a correct assumption?
For example: | ||
|
||
```yaml | ||
topic: '${data_stream.type}' |
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.
This is the Kafka output doc under “Configure standalone Elastic Agents”. I assume the topic settings need to be added in the elastic-agent.yml
. Is it correct to provide the substitution variable wrapped in ${}
(and not %{[]}
)?
This PR fixes some errors in the Kafka output docs that fall under “Manage Elastic Agents with Fleet” and “Configure standalone Elastic Agents”.
It also adds an example for using a dynamic custom field as the
topic
value in theelastic-agent.yml
config file and also for setting the dynamic custom field on the Fleet UI.