Skip to content

[Security Solution] Warning flashes when editing rule index patterns #203600

Open
@jkelas

Description

Follow-up to: #178908

Summary

When editing a rule which has a filter with AND or OR condition, and modifying the "Index patterns", the filter displayed in "Custom query" field flashes a Warning message for a fraction of a second. Please see the recordings.

Steps to reproduce

  1. Launch a clean Kibana + ES environment.
  2. Create some valid indices with source events. Locally, one easy way to do this would be using the 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:changeme@127.0.0.1:9200 --kibana http://elastic:changeme@0.0.0.0:5601/kbn --numHosts=5 --numDocs=2.
  3. Create a new custom rule. Enter "logs*" and "abc*" as indices.
  4. Enter * as the rule's query.
  5. Add a rule filter, for example host.name: Host-avy6d0956e AND host.os.family: windows (use any values from your source data).
    Notice that the filter is displayed without any warnings, and the field values in the filter are clearly visible.
  6. Save the rule.
  7. Click "Edit rule settings" button.
  8. In the "Index patterns" field remove the "abc*" pattern or add any other pattern, e.g. "bcd*".
  9. Click anywhere else on the page to change the focus. Notice the flash of a Warning message for a fraction of a second in the "Custom query" field.

Expected behavior:

There should be no Warning flashing in the "Custom query" field.

Recordings

394328583-c6b76b3a-29a3-403d-a549-d994a3d1dc24.mov
394328628-17bb2d96-990c-4d11-b690-e134a261b0ff.mov

Metadata

Assignees

Labels

8.18 candidateFeature:Rule EditSecurity Solution Detection Rule Editing workflowTeam: SecuritySolutionSecurity Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.Team:Detection EngineSecurity Solution Detection Engine AreaTeam:Detection Rule ManagementSecurity Detection Rule Management TeamTeam:Detections and RespSecurity Detection Response TeambugFixes for quality problems that affect the customer experienceimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions