-
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
Skip k8s processor for events coming from Agent #29809
Conversation
Signed-off-by: chrismark <[email protected]>
This pull request doesn't have a |
This pull request does not have a backport label. Could you fix it @ChrsMark? 🙏
NOTE: |
Signed-off-by: chrismark <[email protected]>
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
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.
@blakerouse @ph I wonder if there is a nicer way to add this condition for example as part of the transpiler?
It feels strange that we have to make a change in the default beats configs instead of making it in Elastic Agent.
Co-authored-by: Nicolas Ruflin <[email protected]>
Another option would be to use another default configuration for Beat's config like we do for docker with |
I like this idea a lot. This would potentially also solve some other issues where we use the transpiler to set some defaults instead of just modifying a config file. It would also decouple Beats run under Elastic Agent more cleary. It means we would have an @cmacknz For awareness. |
Yes. Not sure how easy it would be technically to happen though. |
Simply adding beats/x-pack/elastic-agent/spec/filebeat.yml Lines 3 to 9 in 56423a0
|
Yes, what is proposed by @blakerouse seems to be the easiest way to have a completely different set of default options. |
So what could be the next step here? I guess I can close this PR if we agree on going with the |
I think the control plane team should take this over @jlind23 . Seems we all agree the config file would be a better approach. @blakerouse If we have the separate config, it seems we can get rid of all the other |
@ruflin Yes we could move them into the configuration file. |
@ruflin @blakerouse I wonder, if this could open a security risk if a user is able to modify the configuration file? |
@ph It is possible that it could allow them to add something, but we already have that today with the default configuration anyway. |
created elastic/elastic-agent#90 for the solution please comment on it. I will check with @jlind23 to prioritize it. |
What does this PR do?
This PR adds a condition to the
add_kubernetes_metadata
processor so as to be skipped in case the event is produced by an Agent setup.Why is it important?
So as to avoid having the
add_kubernetes_metadata
processor being enabled by default when Filebeat/Metricbeat is deployed via Elastic Agent.Closes #29767