[Security Solution] Unable to Save Edited ESQL Rule Due to Query Validation Error #203502
Labels
8.18 candidate
bug
Fixes for quality problems that affect the customer experience
Feature:Prebuilt Detection Rules
Security Solution Prebuilt Detection Rules area
fixed
impact:low
Addressing this issue will have a low 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.
Description:
When editing the prebuilt rule “AWS IAM User Created Access Keys For Another User” (type: ESQL) and attempting to save changes, the system throws a validation error for the query field. The error states:
“Queries that don’t use the STATS…BY function (non-aggregating queries) must include the ‘metadata _id, _version, _index’ operator after the source command. For example: FROM logs metadata _id, _version, _index.”*
This prevents the rule from being saved even if no changes are made to the query.
Kibana/Elasticsearch Stack version:
8.x
Functional Area (e.g. Endpoint management, timelines, resolver, etc.):
Prebuilt Rules Customization
Pre requisites:
prebuiltRulesCustomizationEnabled
flag is enabledSteps to reproduce:
Current behavior:
“Queries that don’t use the STATS…BY function (non-aggregating queries) must include the ‘metadata _id, _version, _index’ operator after the source command. For example: FROM logs metadata _id, _version, _index.”*
Expected behavior:
Evidences:
Screen.Recording.2024-12-09.at.2.25.02.PM.mov
The text was updated successfully, but these errors were encountered: