Search Fields Through a Given Pattern - Example 3

Perform flexible pattern matching with wildcards

Query

logscale
wildcard(field=animal, pattern=*h*rse*, ignoreCase=true)

Introduction

Given the following events:

fieldvalue
animalhorse
animalHorse
animalduck
animalHORSES
animalcrazy hOrSe
animalhooorse
animaldancing with horses

Finds events where field animal matches the given pattern, and it's case-insensitive:

Step-by-Step

  1. Starting with the source repository events.

  2. logscale
    wildcard(field=animal, pattern=*h*rse*, ignoreCase=true)

    Filters for elements in the field animal that match *h*rse*.

  3. Event Result set.

Summary and Results

The result is a list of the following accepted events:

animal
horse
Horse
HORSES
crazy hOrSe
dancing with horses
hooorse

The query used is equivalent to: animal=/h.*rse/i .

Note that it is unanchored.