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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...