Dashboards & Visualizations

How to pass multivalue tokens to other splunk dashboard URL

nmouli
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

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

pinksqtuason
Explorer

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

DalJeanis
Legend

See this page, section on Define tokens for multiselect inputs

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

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