-
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 Filebeat autodiscover hints default settings #12348
Fix Filebeat autodiscover hints default settings #12348
Conversation
Default settings were broken after elastic#12162, this code updates them to the new input and makes sure that enable/disable logic works correctly. Tests have been added to make sure this changes still work
} else { | ||
// full config provided, discard default | ||
c.DefaultConfig = config | ||
} |
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.
What if a full config is provided, but also with the enabled setting set to true?
Would this work?
hints.default_config:
type: container
enabled: true
paths:
- "/var/log/pods/${data.kubernetes.pod.uid}/${data.kubernetes.container.name}/*.log"
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 should, as I'm checking number of fields == 1
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.
Oh, right
Default settings were broken after elastic#12162, this code updates them to the new input and makes sure that enable/disable logic works correctly. Tests have been added to make sure this changes still work (cherry picked from commit 289c984)
…stic#12356) Default settings were broken after elastic#12162, this code updates them to the new input and makes sure that enable/disable logic works correctly. Tests have been added to make sure this changes still work (cherry picked from commit 66fe637)
Default settings were broken after #12162, this code updates them to the
new input and makes sure that enable/disable logic works correctly.
Tests have been added to make sure this changes still work.
Fixes #12346