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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...