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!

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...

Alerting Best Practices: How to Create Good Detectors

At their best, detectors and the alerts they trigger notify teams when applications aren’t performing as ...

Discover Powerful New Features in Splunk Cloud Platform: Enhanced Analytics, ...

Hey Splunky people! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2408. In this ...