Skip to content

feat(health): add skip_initial_history flag to periodic log collector #3636

Description

@cdraman

What problem does this solve?

When forge-hw-health starts in periodic (poll) mode, the logs collector drains the full historical log backlog from all BMC log services on the first poll. This floods the analyzer pipeline with stale XID events from faults that may be days or weeks old and already resolved, producing spurious PHRs on every restart.

Feature Description

Add a skip_initial_history: bool flag (default false) to PeriodicLogConfig. When enabled, the collector anchors at the current highest log entry ID on first encounter and skips all historical entries. Only log entries arriving after startup are forwarded.

Code of Conduct

  • I agree to follow NVIDIA Infra Controller's Code of Conduct
  • I have searched the open issues and have found no duplicates

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

No fields configured for Enhancement.

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions