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!

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