Dashboards & Visualizations

Token's value with slash

tiagomiranda
Explorer

I created a dropdown Input for my dashboard and my token's name is "TEST\admin".On the search, Splunk doesn't understand the token's value, following an example:

source=dbx action_id_name = "$token$"
source=dbx action_id_name = "TEST\admin" - DOESN'T WORK
source=dbx action_id_name = "TEST\admin" - IT'S WORK

How Can I include one slash in the middle of the token's value? Like this "TEST\admin".

Best regards.

0 Karma
1 Solution

somesoni2
Revered Legend

Try something like this

source=dbx action_id_name = [| gentimes start=-1 | eval search=replace("$token$","\\\\","\\\\\\\\") | table search] 

View solution in original post

somesoni2
Revered Legend

Try something like this

source=dbx action_id_name = [| gentimes start=-1 | eval search=replace("$token$","\\\\","\\\\\\\\") | table search] 

tiagomiranda
Explorer

It worked perfectly!

Thank you!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...