Fuzzy Search Query using KQL or Lucene

I'm trying to find documents where the host.os.platform field has some words similar to host.os.name for example I want to use Kibana discover either Lucene or KQL for that.
This is what I came up with :


This query uses a wildcard character * to match any characters before or after the value of host.os.name . So if host.os.name is "Rocky Linux", this query will match documents where host.os.platform contains any words that include "Rocky", such as "rocky", "rockylinux", "rocky-8", etc.

I m not getting results can any one may be advise on what I m doing wrong here.

update some thing what I came up with may it will help some one

host.name: *linux* and host.os.type: linux

Hi @Tiharqa. It looks like you have figured out the solution. I would only add that *linux* can be a very resource intensive query because the pattern begins with the wildcard character * . Note the Warning in this documentation.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.