beats
beats copied to clipboard
[beatreceiver] global paths definition
https://github.com/elastic/beats/blob/eddae46777192e784c0744cc93ee59d313ceb987/x-pack/libbeat/cmd/instance/beat.go#L67
This ends up calling elastic-agent-libs/paths InitPaths function which sets package level globals for path definitions. This means that there is only one path.home defined at any given time, even if multiple beat receivers have been defined and each has it's own path.home in it's config.
The means that you can't have different state stores for each beat receiver.
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)
Quick reminder: we should try re-enabling the flaky test #45147 to verify that it's fixed.
Added https://github.com/elastic/beats/issues/46841 as a sub-issue which was identified in https://github.com/elastic/beats/pull/46779
can this and the parent issue be closed (since we moved out the follow-ups into separate issues)?
I'm in favor of closing that one, what we wanted for Milestone 1 is done.
Closing future work is tracked in https://github.com/elastic/ingest-dev/issues/6243