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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...