Splunk Search

exact phrase with wild cards

user93
Communicator

I want to search an exact phrase, but surronded by wildcards. I want to be able to do this with and without specifying the field.

&
|
|search "help me"

What am I doing wrong? I do I get Splunk to accept space as a character within a phrase?

Tags (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @user93,
you can do something like this:

your_search "*help me*"
| ...

or

your_search my_field="*help me*"
| ...

but remember that using wildcards, you haven't a quick search especially without fields.

Anyway, you can use spaces inside quotes as a normal char, if instead you don't use quotes, space is a separator.

Ciao.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @user93,
you can do something like this:

your_search "*help me*"
| ...

or

your_search my_field="*help me*"
| ...

but remember that using wildcards, you haven't a quick search especially without fields.

Anyway, you can use spaces inside quotes as a normal char, if instead you don't use quotes, space is a separator.

Ciao.
Giuseppe

0 Karma

user93
Communicator

Thank you Ciao!

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 ...