Skip to content

[Request] Gap fill status - error #5747

@nkhristinin

Description

@nkhristinin

Description

What: We introduced a new error gap fill status for detection rules. When a gap remains unfilled after exhausting all auto-fill retry attempts, it is now classified as error instead of unfilled.

Why: Previously, gaps that could not be auto-filled after multiple retries were still shown as unfilled, making them indistinguishable from gaps that haven't been attempted yet. The new error status improves visibility into rules that are not recoverable by auto-fill, allowing users to identify and act on them separately.

How:

  1. Enable the auto gap fill scheduler in Rule Settings
  2. When a gap exhausts all retry attempts, its status changes from unfilled to error
  3. In the Rules table, use the gap fill status filter to filter by Error
  4. In the Rules with Gaps overview, the summary chart and table show Error as a separate bucket with its own count and duration
  5. The error status is only computed when the gap auto-fill scheduler is enabled. If the scheduler is disabled or unavailable, gaps remain classified as unfilled

Background & resources

Which documentation set does this change impact?

ESS and serverless

ESS release

9.4

Serverless release

After merge to main

Feature differences

API docs impact

API docs impact

Get rules with gaps

POST /internal/alerting/rules/gaps/_get_rules

New optional body parameter:

Parameter Type Required Description
gap_auto_fill_scheduler_id string No Scheduler ID used to determine error status. When provided and the scheduler is enabled, gaps that exceeded retry attempts are classified as error.

Get gaps summary by rule IDs

POST /internal/alerting/rules/gaps/_get_gaps_summary_by_rule_ids

New optional body parameter:

Parameter Type Required Description
gap_auto_fill_scheduler_id string No Scheduler ID used to compute error classification in the summary.

Gap fill status enum

The gap_fill_status enum now includes error across all relevant endpoints:

Value Description
unfilled Gap has not been filled yet
filled Gap has been fully filled
partially_filled Gap has been partially filled
error Gap could not be filled after exhausting all auto-fill retry attempts

Security Solution Detection Rules APIs

Find rules (GET /api/detection_engine/rules/_find) and Bulk actions (POST /api/detection_engine/rules/_bulk_action) now accept an optional gap_auto_fill_scheduler_id query/body parameter to enable error status classification when filtering or sorting by gap fill status.

Prerequisites, privileges, feature flags

no

Metadata

Metadata

Labels

Team:ExperienceIssues owned by the Experience Docs Team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions