Splunk Search

Help on dropdown list token

jip31
Motivator

Hi

I try to filter my table events from à dropdown list like this

Owner=$owner$

The item syntax in the dropdown lis is like REM\A-AA228339

I tried with Owner="$owner$" but it doesnt works

What is wrong please?

Labels (1)
Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Then try escaping it

REM\\A-AA228339

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

If you have backslashes in your string, you may need to escape them.

0 Karma

jip31
Motivator

Something like this?

REM"\"123467

If yes, is it possible to have aregex to do that because the item list of my dropdown list is imported automatically 

Thanks

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

No, that is not escaping, that is quoting. Are you using / or \ as they are different?

0 Karma

jip31
Motivator

I use always \

REM\A-AA228339

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Then try escaping it

REM\\A-AA228339
0 Karma
Get Updates on the Splunk Community!

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...