beats icon indicating copy to clipboard operation
beats copied to clipboard

[beatreceiver] global paths definition

Open leehinman opened this issue 5 months ago • 1 comments
trafficstars

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.

leehinman avatar Jun 18 '25 18:06 leehinman

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

elasticmachine avatar Jun 18 '25 18:06 elasticmachine

Quick reminder: we should try re-enabling the flaky test #45147 to verify that it's fixed.

mauri870 avatar Jul 03 '25 13:07 mauri870

Added https://github.com/elastic/beats/issues/46841 as a sub-issue which was identified in https://github.com/elastic/beats/pull/46779

cmacknz avatar Sep 29 '25 15:09 cmacknz

can this and the parent issue be closed (since we moved out the follow-ups into separate issues)?

AlexanderWert avatar Oct 16 '25 07:10 AlexanderWert

I'm in favor of closing that one, what we wanted for Milestone 1 is done.

pierrehilbert avatar Oct 16 '25 09:10 pierrehilbert

Closing future work is tracked in https://github.com/elastic/ingest-dev/issues/6243

leehinman avatar Oct 16 '25 13:10 leehinman