Splunk Search

Why when I use "\\" it shows results with only one "\"

rasamur
Engager

I'm currently creating a search and in my search I entered the following

source="FileName.csv" \ OR SMS

In the results it shows events with a Single "\" and double "\". I need to show results with two "\" not only one.

I've tried:

\
"\"
punct=*\*

But still it shows only results with only one "\". What can be done so the results show results where there is actually two "\"?

Regards

Tags (1)
0 Karma
1 Solution

sbbadri
Motivator

use "\" for single slash and use "\\" for double slash. Because splunk use slash as an escape character.

View solution in original post

woodcock
Esteemed Legend

Use \\.

0 Karma

sbbadri
Motivator

use "\" for single slash and use "\\" for double slash. Because splunk use slash as an escape character.

rasamur
Engager

Thank you for the help.

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...