Skip to content

Filestream reingests data when clean_inactive is set #45601

@faec

Description

@faec

The documentation for clean_inactive says that file state can only be removed if the file is already ignored by Filebeat using the ignore_older setting. However, clean_inactive takes effect even when ignore_older is disabled.

The documentation also says that clean_inactive must be greater than ignore_older + prospector.scanner.check_interval. However, this constraint is ignored; clean_inactive is unaffected by ignore_older and prospector.scanner.check_interval, and regardless of their values the setting clean_inactive: 0 will always reingest all files every time Filebeat is run.

The documentation for the clean_inactive in filestream is identical to the documentation for the same flag in the log input, and accurately describes how the log input behaves: if clean_inactive is set without enabling ignore_older, or if clean_inactive < ignore_older + scan_frequency, the input reports a fatal configuration error on startup.

(Additionally, in the log input, setting clean_inactive: 0 disables the flag, and is the default setting. In the filestream input, setting clean_inactive: 0 enables the flag, and reingests everything immediately on startup. This difference is not mentioned in the documentation, but does not explicitly contradict it.)

Related issues / PRs:

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions