-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Support flattened data_stream.* fields under Elastic-Agent #36516
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
f2d9e0f
to
ae54645
Compare
ae54645
to
fefc96e
Compare
When an input configuration comes from Elastic-Agent the data_stream.* fields sometimes are flattened (e.g: data_stream.dataset: mystuff), this was not supported by Beats. This commit enables support for it.
fefc96e
to
fc0a3fd
Compare
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.
LGTM
Type: "my type", | ||
}, | ||
}, | ||
"mix of flattened and data_stream": { |
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.
Glad to see we test the mixed scenario 👍
…6516) When an input configuration comes from Elastic-Agent the data_stream.* fields sometimes are flattened (e.g: data_stream.dataset: mystuff), this was not supported by Beats. This commit enables support for it.
…lastic#36516)" (elastic#36610) This reverts commit f4535a4.
Proposed commit message
When an input configuration comes from Elastic-Agent the data_stream.* fields sometimes are flattened (e.g: data_stream.dataset: mystuff), this was not supported by Beats.
This commit enables support for it.
Checklist
- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.## Author's ChecklistHow to test this PR locally
Configure a standalone Elastic-Agent with a flattened
data_stream
field, like this:Run the Elastic-Agent and assert that the dataset from the events is
mystuff
.Related issues
data_stream
fields elastic-agent#3191## Use cases## Screenshots## Logs