elastic/kibana

[EQL] Remove usage of ignore:400 for syntax validation

Open

#169,042 创建于 2023年10月16日

在 GitHub 查看
 (5 评论) (0 反应) (1 负责人)TypeScript (19,065 star) (8,021 fork)batch import
Team: SecuritySolutionTeam:Detection Enginebuggood first issue

描述

Describe the bug:

Currently, the EQL search strategy adds "ignore": [400] to the params sent to the elasticsearch-js client which causes the client to treat 400 errors as expected:

https://github.com/elastic/kibana/blob/6efef0496077f4e61d49e4e43f75941ff3d98d9e/x-pack/plugins/security_solution/public/common/hooks/eql/api.ts#L42

As a result, the response back may indeed be a 400 error but it is returned as a normal 200 response.

This may have been necessary at some point but now ES properly sends a message back indicating syntax errors:

image

贡献者指南

[EQL] Remove usage of ignore:400 for syntax validation · elastic/kibana#169042 | Good First Issue