[Security Solution] Warnings in rule filters on the Rule Details page: "Field does not exist in current view" #178908
Labels
8.17 candidate
bug
Fixes for quality problems that affect the customer experience
Feature:Rule Details
Security Solution Detection Rule Details page
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Related to: #177081
Kibana version: 8.14.0-SNAPSHOT
Summary
If you create a rule with a filter, such as
host.name: "some-value" AND host.os.family: "windows"
, then:host.name: Warning AND host.os.family: Warning
.Rule Creation:
Rule Details:
Steps to reproduce
resolver_generator
script that generates fake endpoint events (events generated by Endpoint Security aka Elastic Defend):node x-pack/plugins/security_solution/scripts/endpoint/resolver_generator.js --node http://elastic:[email protected]:9200 --kibana http://elastic:[email protected]:5601/kbn --numHosts=5 --numDocs=2
.resolver_generator
script. Otherwise, point the rule to the indices you created on the previous step.*
as the rule's query.host.name: Host-avy6d0956e AND host.os.family: windows
(use any values from your source data).Warning
s are displayed.Expected behavior: on the Rule Details page there shouldn't be any warnings in rule filters, when we know that source events with the field values used in the filters exist. Field values should be displayed instead of warnings, just like on the Rule Creation and Editing pages.
Hypothesis
Maybe the bug is caused by the fact that on the Rule Details page we use a data view that includes only the
.alerts-security.alerts-<spaceid>
index:The filter's UI component tries to find the filter's fields and their values in this data view, and doesn't find them because there are no alerts created with these fields yet. You can check in Discover that indeed, there are source events with those fields, but there are no alerts:
Source events:
Alerts:
So the fix would be to use on the Rule Details page a data view that would correspond to the list of index patterns or the data view of the rule, instead of the data view pointing to the alerts index of the current Kibana space.
The text was updated successfully, but these errors were encountered: