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

Try something like this

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

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

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!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...