Skip to content

[beatreceiver] replace global paths in cache processor #46985

@leehinman

Description

@leehinman

In both

err := os.MkdirAll(paths.Resolve(paths.Data, "cache_processor"), 0o700)

path := filepath.Join(paths.Resolve(paths.Data, "cache_processor"), cleanFilename(cfg.Store.File.ID))

There are calls to paths.Resolve to determine where the persistent cache should be written to disk. This should be modified to use:

Paths *paths.Path // per beat paths definition

So that each beatreceiver can have an independent cache that is correctly found on restarts. The Crowdstrike FDR datastream makes use of this processor. The processor could also be used in the "custom" section of any of the integrations.

Relates #44903

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions