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!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...