Dashboards & Visualizations

help on token issue

jip31
Motivator

Hi
In my dashboard I update different panels from a dropdown list
The name of my dropdown list is "tok_filtersite"
As you can see in the screenshot I use a parameter in the exploration editor in order to retrieve the field "Site" in my drilldown

 <drilldown>
          <link target="_blank">/app/SA_XXXXX_sh/usage_m?Site=$tok_filtersite|s$</link>
        </drilldown>

It works perfectly but the issue comes when I use this parameter in the same dashboard with different drillwdowns
Instead having Site=$tok_filtersite|s$, I have Site=$tok_filtersite%7Cs$
Why? Its not possible to use the same token many times in a same dashboard?
If yes, how to correct this please??

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

jkat54
SplunkTrust
SplunkTrust

%7c is the "url encoded" version of the | symbol.

Depending on where you are referencing the token in the dashboard, you might find special characters need to be escaped or quoted in order for them to work.

Try the following possible solutions

 Site='$tok_filtersite|s$'

 Site="$tok_filtersite|s$"

 Site=$tok_filtersite||s$

 Site=$tok_filtersite\|s$

 Site=$tok_filtersite\\|s$

 Site='$tok_filtersite\|s$'

And other combinations thereof

View solution in original post

0 Karma

jkat54
SplunkTrust
SplunkTrust

%7c is the "url encoded" version of the | symbol.

Depending on where you are referencing the token in the dashboard, you might find special characters need to be escaped or quoted in order for them to work.

Try the following possible solutions

 Site='$tok_filtersite|s$'

 Site="$tok_filtersite|s$"

 Site=$tok_filtersite||s$

 Site=$tok_filtersite\|s$

 Site=$tok_filtersite\\|s$

 Site='$tok_filtersite\|s$'

And other combinations thereof

0 Karma

jkat54
SplunkTrust
SplunkTrust

Hey, thanks for accepting my answer! I'm curious, can you tell us which one worked?

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...