-
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
Fix issue where autodiscover hints default configuration was not being copied. #16987
Conversation
Pinging @elastic/integrations-platforms (Team:Platforms) |
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.
It looks good @blakerouse ! I only left a question regarding the comments that were added, feel free to correct me!
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.
Great investigation @blakerouse! Change looks good and safe.
Do you think we could add a test case that reproduces this issue and checks that multiple configs don't interfere one with each other?
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.
Thanks for adding a test!
…g copied. (elastic#16987) * Fix issue where autodiscover hints default configuration was not being copied. * Add changelog. * Add test and update comment. (cherry picked from commit 661ff14)
…g copied. (elastic#16987) * Fix issue where autodiscover hints default configuration was not being copied. * Add changelog. * Add test and update comment. (cherry picked from commit 661ff14)
… configuration was not being copied. (#17003) * Fix issue where autodiscover hints default configuration was not being copied. (#16987) * Fix issue where autodiscover hints default configuration was not being copied. * Add changelog. * Add test and update comment. (cherry picked from commit 661ff14) * Fix import to remove v7.
What does this PR do?
FIxes issue where when a default configuration is provided to autodiscovery in filebeat it would cause the elasticsearch module to have log messages repeated and appear in different datasets.
Why is it important?
Without this change log messages would be repeated and reported in different datasets unless
hints.default_config.enabled: false
was set. Which also prevented filebeat from reading the logs of pods that didn't have the annotation ofco.elastic.logs/enabled: true
.Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature worksHow to test this PR locally
cd filebeat && PACKAGES="linux/amd64" mage package
event.dataset
.Related issues
Use cases
Screenshots
Logs