Splunk Search

Usage of Wildcard in middle of search string



I read from splunk docs that we should avoid using wildcards `*` in the middle of a string.
Now, does this apply to  `%` wildcard used in `like()` too ? Ex:  like(some_field ,"abc%def")
From my testing it seems , `%` is able to match punctuations too unlike `*`.

Labels (1)
Tags (1)
0 Karma


I believe that caution pertains to the search command itself rather than the like function.  Consider submitting feedback on that documentation page asking the Docs team to clarify.

If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Observability Highlights | November 2022 Newsletter

 November 2022Observability CloudEnd Of Support Extension for SignalFx Smart AgentSplunk is extending the End ...

Avoid Certificate Expiry Issues in Splunk Enterprise with Certificate Assist

This blog post is part 2 of 4 of a series on Splunk Assist. Click the links below to see the other ...

Using Machine Learning for Hunting Security Threats

REGISTER NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more ...