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!

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!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...