elastic/kibana

[Security Solution] Empty Alert Table Lines Displayed in Rule Preview When No Alerts Are Found

Open

#211820 opened on Feb 19, 2025

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (19,065 stars) (8,021 forks)batch import
Feature:Detection Rule PreviewTeam: SecuritySolutionTeam:Detection EngineTeam:Detections and Respbugeffort:lowgood first issueimpact:lowvalue:low

Description

Description:

When a user enters a query that would not result any result and clicks Rule Preview, an empty alert table with blank rows is displayed if the query does not return any matching alerts.

Kibana/Elasticsearch Stack version:

8.18 BC4

Functional Area (e.g. Endpoint management, timelines, resolver, etc.):

Detection Rules Preview

Steps to reproduce:

  1. Navigate to the Rule Creation/Edit page.
  2. Enter a query in the rule configuration that is expected to return zero alerts.
  3. Click on Rule Preview to see a preview of the rule’s potential results.
  4. Observe the Rule Preview section.

Current behavior:

The alert table is displayed with empty rows, even though no alerts exist.

Expected behavior:

The empty rows should not appear in the preview.

Screenshots :

https://github.com/user-attachments/assets/ff7d7593-9edd-4ed3-ad63-dbf96b951037

Contributor guide