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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...