Search Multiple Fields Through a Given Pattern

Search multiple specific fields for an exact value using the wildcard() function with case sensitivity

Query

flowchart LR; repo{{Events}}:::entry 1[/Filter/] result{{Result Set}}:::entry repo --> 1 1 --> result
flowchart LR; repo{{Events}}:::entry 1[/Filter/] result{{Result Set}}:::entry repo --> 1 1 --> result
logscale
wildcard(field=[plant,animal], pattern=horse, ignoreCase=false)

Introduction

Given the following events:

fieldvalue
animalhorse
animalHorse
animalduck
animalHORSES
animalcrazy hOrSe
animalhooorse
animaldancing with horses
plantdaisy
planthorseflower

Search multiple fields for a value allows you to find events where the field animal or plant contains the exact value horse, and makes it case-sensitive.

Step-by-Step

  1. Starting with the source repository events.

  2. flowchart LR; repo{{Events}}:::entry 1[/Filter/] result{{Result Set}}:::entry repo --> 1 1 --> result class 1 highlight;
    flowchart LR; repo{{Events}}:::entry 1[/Filter/] result{{Result Set}}:::entry repo --> 1 1 --> result class 1 highlight;
    logscale
    wildcard(field=[plant,animal], pattern=horse, ignoreCase=false)

    Searches elements in the fields animal and plant that match horse.

  3. Event Result set.

Summary and Results

The result is a list of events where either the field animal or plant has the exact value horse.

The query used is equivalent to animal="horse" plant="horse".