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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...