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!

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