diff --git a/x-pack/plugins/observability/public/embeddable/slo/alerts/slo_selector.tsx b/x-pack/plugins/observability/public/embeddable/slo/alerts/slo_selector.tsx index dd926cc9fc179..e3ef81786da55 100644 --- a/x-pack/plugins/observability/public/embeddable/slo/alerts/slo_selector.tsx +++ b/x-pack/plugins/observability/public/embeddable/slo/alerts/slo_selector.tsx @@ -36,9 +36,9 @@ export function SloSelector({ initialSlos, onSelected, hasError, singleSelection mapSlosToOptions(initialSlos) ); const [searchValue, setSearchValue] = useState(''); - const query = `${searchValue.replaceAll(' ', '*')}*`; + const query = `${searchValue}*`; const { isLoading, data: sloList } = useFetchSloList({ - kqlQuery: `slo.name: ${query} or slo.instanceId: ${query}`, + kqlQuery: `slo.name: (${query}) or slo.instanceId.text: (${query})`, perPage: 100, });