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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...