Dashboards & Visualizations
Highlighted

How to pass multivalue tokens to other splunk dashboard URL

Explorer

I have multi select token "product" have values A,B,C,D so on and had one pie chart displaying the status for each product value.
and, i'm using drill down to other dashboard when i click the pie chart it should pass the product token and then the dependent charts should get displayed there.

Now, if i select only one product then the drill down is working fine and all the charts are populating in other dashboard.
However, if i select multiple products A & B the drill down is working but product token is not taking the values separately.

My drill down link as follows:
"
dashboard?form.time.latest=$form.time.latest$&form.time.earliest=$form.time.earliest$&form.product=$form.product$&form.status_type=$click.value$
"

I think, need to mention form.product=$form.product$ twice since i'm selecting 2 values but i want to do it dynamically as should not change every time if i select 3 values or more..

Can someone please suggest how to achieve this? Thanks in Advance.

0 Karma
Highlighted

Re: How to pass multivalue tokens to other splunk dashboard URL

SplunkTrust
SplunkTrust

See this page, section on Define tokens for multiselect inputs

http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens

0 Karma
Highlighted

Re: How to pass multivalue tokens to other splunk dashboard URL

Path Finder

it seems nobody else solved this one. I used a second token and some careful use of the delimiter field. Here's roughly what I did.

<input type="multiselect" token="my_tok">
  <fieldForLabel>Label</fieldForLabel>
  <fieldForValue>Value</fieldForValue>
  <search ref="my_search"></search>
  <choice value="*">All</choice>
  <valuePrefix>"</valuePrefix>
  <valueSuffix>"</valueSuffix>
  <delimiter>,</delimiter>

  <change>
    <set token="myURLtok" delimiter="&amp;form.my_tok=">$value|u$</set>
  </change>

</input>

Then when specifying the URL:

< a href="myurl?form.my_tok=$myURLtok$&" < /a >

Highlighted

Re: How to pass multivalue tokens to other splunk dashboard URL

New Member

Hello, I'd like to ask if did this work on you well? because I tried to use this method, however it is just passing only the first selected value.

0 Karma