Splunk Search

Usage of Wildcard in middle of search string

splunkuser1948
Engager

Hi,

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

richgalloway
SplunkTrust
SplunkTrust

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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...