-
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
Don't enable default processors if the environment does not require it #35244
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
For agent, configuring which global processors are enabled by default will be enabled by the shipper.
I like this idea, generally an agent that needs In general configuring the of global processors used by default when running the agent will be enabled by the shipper, so I don't feel like we need to prioritize this since the global processor support is probably good enough to start. Standalone Beats already allow this, the default processors are just the ones that happen to be in the reference configuration file and this is the situation agent will be in soon. |
Just a small detail @rdner, regarding:
On only saw that happening on a VM with Docker installed. I did not test it without Docker installed or with Docker not running. |
Hi! We're labeling this issue as |
Describe the enhancement:
Currently, we always add default processors like in Filebeat here:
beats/x-pack/filebeat/cmd/root.go
Lines 40 to 57 in f4374dc
Auditbeat:
beats/x-pack/auditbeat/cmd/root.go
Lines 67 to 77 in f4374dc
Packetbeat:
beats/x-pack/packetbeat/cmd/root.go
Lines 67 to 115 in f4374dc
Some of the processors like these 3
depend on the environment where the Beats are running. Which means if our users run the Beats without Docker, or not in the cloud, or not in Kubernetes we end up with spamming debug logs and wasting time on trying to attach metadata to every event.
We should be smarter about enabling these processors and do it only if the environment can provide the metadata that the processors are extracting.
For example, we could add a new function to these heavy processors (their packages) called
Probe() bool
that returnstrue
when it makes sense to run the processor and only then add it on the list.Describe a specific use case for the enhancement or feature:
When running Elastic Agent on a VM (no Docker) with debug logs on, you'll see:
on every single event.
The text was updated successfully, but these errors were encountered: