[Detection Engine][Preview] Threshold preview fails when no alerts index exists #198209
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Detection Engine
Security Solution Detection Engine Area
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
v8.17.0
Summary
Rule preview fails when trying to generate a preview on a fresh instance prior to the alerts index being created. Alerts indices are created on first write. If a threshold rule does not have execution history, it falls back to trying to recreate it using the alerts index. When it attempts to query the alerts index and no index exists, the execution fails.
Steps to reproduce
Threshold Rule
.query: *
and thresholdhost.name
with threshold value of1
Rule Preview
Custom query
rule and runRule Preview
- notice alerts generated.Threshold Rule
and runeRule Preview
- notice now alerts are generated.The text was updated successfully, but these errors were encountered: