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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...