Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Detection Engine] fixes getIndexPatternFromESQLQu…
…ery utility when parsing ES|QL queries with wildcards (#179946) ## Summary - fixes #176749 Query like this not parsed correctly by `getIndexPatternFromESQLQuery`, which returns empty string`""` ``` from reproissue-* [metadata _id, _index] | where event.action == "edit monitoring policy" | where event.reason like "*Disable: changed from [true] to [false]*" ``` This leads to Security Detection rules execution's failure, described in ticket above. This PR fixes issue and adds unit test to for this specific use case. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
- Loading branch information