Search Multiple Fields Through a Given Pattern
Query
logscale
wildcard(field=[plant,animal], pattern=horse, ignoreCase=false)
Introduction
Given the following events:
field | value |
---|---|
animal | horse |
animal | Horse |
animal | duck |
animal | HORSES |
animal | crazy hOrSe |
animal | hooorse |
animal | dancing with horses |
plant | daisy |
plant | horseflower |
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
Starting with the source repository events.
- 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(field=[plant,animal], pattern=horse, ignoreCase=false)
Searches elements in the fields animal and plant that match
horse
. 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"
.