[Security Solution] detection_engine/rules/_find returns 500 when query matches many rules #119853
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Rule Management
Security Solution Detection Rule Management area
impact:high
Addressing this issue will have a high 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.
v8.0.0
v8.1.0
Describe the bug:
detection_engine/rules/_find
API endpoint returns a 500 error when the provided query matches many rules.Steps to reproduce:
curl 'http://localhost:5601/kbn/api/detection_engine/rules/_find?page=1&per_page=10000&sort_field=enabled&sort_order=desc'
Response:
{"message":"An internal server error occurred","status_code":500}
Any additional context (logs, chat logs, magical formulas, etc.):
Inside the
detection_engine/rules/_find
route we callsavedObjectsClient.find
and pass all found ruleIds to it:That call later transforms into the following Elasticsearch query:
Which results into an error:
The text was updated successfully, but these errors were encountered: