Dashboards & Visualizations

Set the token value from linked dashboard to a dynamic search drop down menu

macadminrohit
Contributor

Hello,

I have two dashboards linked to each other, and i am passing the parameters for the linked dashboard in the drilldown url. The values passed for one of the drop downs is having a dynamic values option, coming through a search. My question is how to actually pass that parameter in the URL.

0 Karma

renjith_nair
Legend

@macadminrohit ,

It shouldn't have any difference whether it's a dynamic or static values in the target dashboard as its based on the token. Try setting the token of the target dashboard with the click.value

  <row>
    <panel>
      <table>
        <search>
          <query>index=_internal|stats count by sourcetype</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <drilldown>
          <link target="_blank">/app/search/target_dashboard?form.sourcetype=$click.value$</link>
        </drilldown>
      </table>
    </panel>
  </row>

target dashboard has

<form>
  <label>Target_Dashboard</label>
  <fieldset submitButton="false">
    <input type="dropdown" token="sourcetype">
      <label>Sourcetype</label>
      <fieldForLabel>sourcetype</fieldForLabel>
      <fieldForValue>sourcetype</fieldForValue>
      <search>
        <query>index=_*|stats count by sourcetype</query>
        <earliest>-15m</earliest>
        <latest>now</latest>
      </search>
    </input>
  </fieldset>
  <row>
    <panel>
      <table>
        <search>
          <query>index=_* sourcetype=$sourcetype$|stats count by sourcetype,index</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</form>
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

macadminrohit
Contributor

Hi @renjith.nair , the dropdown which has the details i am looking for is dependent on another dropdown menu item. So ideally this drodown menu should be getting the needed value from the drilldown link passed through the other dashboard.

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