Search Fields Through a Given Pattern - Example 4

Query

logscale
wildcard(pattern=horse, ignoreCase=false)

Introduction

Given the following events:

fieldvalue
animalhorse
mammalHorse
mammalwild horses
animalhuman
mammalHORSES
animalduck
mammaldog
animaldancing with horses

Find events that contain horse in any field, case-sensitive:

Step-by-Step

  1. Starting with the source repository events.

  2. flowchart LR; %%{init: {"flowchart": {"defaultRenderer": "elk"}} }%% repo{{Events}} 0[/Filter/] result{{Result Set}} repo --> 0 0 --> result style 0 fill:#ff0000,stroke-width:4px,stroke:#000;
    logscale
    wildcard(pattern=horse, ignoreCase=false)

    Searches the original, unmodified event for the string horse.

  3. Event Result set.

Summary and Results

The result accepts the events with horse, wild horses and dancing with horses. This query is equivalent to the freetext search "horse" .