Skip to content

[beatreceiver] global paths definition #44903

@leehinman

Description

@leehinman

if err := instance.InitPaths(cfg); err != nil {

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.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions