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>
Happy Splunking!
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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...