Splunk Search

Why do wildcards in the middle of a string produce inconsistent results?

ddrillic
Ultra Champion

The studying material says that -

-- Wildcards in the middle of a string produce inconsistent results.

Why is it?

0 Karma
1 Solution

micahkemp
Champion
0 Karma

woodcock
Esteemed Legend
0 Karma

micahkemp
Champion

Check out the Splunk .conf talk by Martin Mueller:

https://conf.splunk.com/files/2017/slides/fields-indexed-tokens-and-you.pdf

Page 18 of 32.

0 Karma

nickhills
Ultra Champion

sounds like one for @martin_mueller to help with then 🙂

If my comment helps, please give it a thumbs up!
0 Karma

nickhills
Ultra Champion

I would say thats not correct at all.

String matching is very predictable, and I frequently match all kinds of things with *'s in the middle.

host=-uk--* matches LIVE-uk-web-02 perfectly.
Never had any problem with it.

Are you sure it didn't say "inefficient" - a query filled with wildcards is not as fast as something specifically defined

If my comment helps, please give it a thumbs up!
0 Karma

somesoni2
Revered Legend

From which documentation is this?

0 Karma

ddrillic
Ultra Champion

From the *Splunk Fundamentals Part 2 (IOD) * course.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...