The AlertsSearchBar component exposed by the @kbn/alerts-ui-shared package is used by various solutions to filter alerts using KQL. Underneath the component use the SearchBar component exposed by the unifiedSearch plugin. The DSL filters are not working properly. The UI shows filter value is invalid or incomplete for DSL filters even though they are valid. This is because the AlertsSearchBar overrides the default behavior of the component by passing the onFiltersUpdated prop. This bug applies to all solutions using the AlertsSearchBar. Also, the MW throws an error if you use a wildcard DSL query. Example:
The
AlertsSearchBar
component exposed by the@kbn/alerts-ui-shared
package is used by various solutions to filter alerts using KQL. Underneath the component use theSearchBar
component exposed by theunifiedSearch
plugin. The DSL filters are not working properly. The UI showsfilter value is invalid or incomplete
for DSL filters even though they are valid. This is because theAlertsSearchBar
overrides the default behavior of the component by passing theonFiltersUpdated
prop. This bug applies to all solutions using theAlertsSearchBar
. Also, the MW throws an error if you use awildcard
DSL query. Example:https://github.com/elastic/kibana/assets/7871006/048c6b2b-bc24-4ca7-98ed-fe1e3116158e