<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to pass token to dropdown panels when token is coming from another dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/580071#M47517</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have two dashboards, dashboard 1 and dashboard 2. I have linked them. When clicking on host from a line chart from dashboard 1, dashboard 2 opens up and filters on the selected host from dashboard 1. So far, dashboard 2 shows the correct host on the multiselect input. The issue is that I somehow override the panels in dashboard 2 with those of dashboard 1.&amp;nbsp; It may be an issue with the token, since I have tok_host=$tok_host$ on both dashboard's 1 and 2, but I am not sure if that is causing the issue. Any advise is welcome.&amp;nbsp; Thanks in advance&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dashboard 1
Input for multiselect:

&amp;lt;input type="multiselect" token="tok_host" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Server (Multi Select)&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt; (index=test_*_idx) |fields + host | stats values(host) as host | mvexpand host | rename host as tok_host  &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;prefix&amp;gt;host IN (&amp;lt;/prefix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt; , &amp;lt;/delimiter&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;tok_host&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;tok_host&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input&amp;gt;

Linking the dashboard code:
 
&amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;/app/XYZ_Sun_Sys/Dashboard2?form.tok_host=$click.name2$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Dashboard 2
Multiselect input code:
 &amp;lt;input type="multiselect" token="tok_host" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Server&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;(index=text_idx)   |fields + host | stats values(host) as host | mvexpand host | rename host as tok_host&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$time_range.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$time_range.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Select Host&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;tok_host&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;delimiter&amp;gt; ,&amp;lt;/delimiter&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;

Dashboard 2 code for panel 

  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
  &amp;lt;panel depends="$tok_host$"&amp;gt;
      &amp;lt;title&amp;gt; First Panel - $tok_host$  &amp;lt;/title&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Space Avail&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=testing_idx  host=$tok_host$  |timechart span=10min avg(Speed) as speed | eval change=_time&amp;lt;/query&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Mar 2022 06:07:14 GMT</pubDate>
    <dc:creator>MeMilo09</dc:creator>
    <dc:date>2022-03-12T06:07:14Z</dc:date>
    <item>
      <title>How to pass token to dropdown panels when token is coming from another dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/580071#M47517</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have two dashboards, dashboard 1 and dashboard 2. I have linked them. When clicking on host from a line chart from dashboard 1, dashboard 2 opens up and filters on the selected host from dashboard 1. So far, dashboard 2 shows the correct host on the multiselect input. The issue is that I somehow override the panels in dashboard 2 with those of dashboard 1.&amp;nbsp; It may be an issue with the token, since I have tok_host=$tok_host$ on both dashboard's 1 and 2, but I am not sure if that is causing the issue. Any advise is welcome.&amp;nbsp; Thanks in advance&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dashboard 1
Input for multiselect:

&amp;lt;input type="multiselect" token="tok_host" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Server (Multi Select)&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt; (index=test_*_idx) |fields + host | stats values(host) as host | mvexpand host | rename host as tok_host  &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;prefix&amp;gt;host IN (&amp;lt;/prefix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt; , &amp;lt;/delimiter&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;tok_host&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;tok_host&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input&amp;gt;

Linking the dashboard code:
 
&amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;/app/XYZ_Sun_Sys/Dashboard2?form.tok_host=$click.name2$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Dashboard 2
Multiselect input code:
 &amp;lt;input type="multiselect" token="tok_host" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Server&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;(index=text_idx)   |fields + host | stats values(host) as host | mvexpand host | rename host as tok_host&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$time_range.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$time_range.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Select Host&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;tok_host&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;delimiter&amp;gt; ,&amp;lt;/delimiter&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;

Dashboard 2 code for panel 

  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
  &amp;lt;panel depends="$tok_host$"&amp;gt;
      &amp;lt;title&amp;gt; First Panel - $tok_host$  &amp;lt;/title&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Space Avail&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=testing_idx  host=$tok_host$  |timechart span=10min avg(Speed) as speed | eval change=_time&amp;lt;/query&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 06:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/580071#M47517</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2022-03-12T06:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token to dropdown panels when token is coming from another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/580111#M47521</link>
      <description>&lt;P&gt;It is not clear what the multi-select in dashboard 2 is supposed to be doing (it doesn't appear to be correct e.g. fieldForLabel and delimiter (without the prefix and suffix?) - why are you not using the same dropdown code as dashboard 1?), or what you mean by panels from dashboard 1 overriding dashboard 2. The drilldown you have in dashboard 1 will set the selection for the multi-select in dashboard 2.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 11:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/580111#M47521</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-06T11:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token to dropdown panels when token is coming from another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/580198#M47530</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I had the input forms match. Thank you for confirming my dashboard 1 code was correct, that was helpful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 03:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/580198#M47530</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2022-01-07T03:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token to dropdown panels when token is coming from another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/588411#M48266</link>
      <description>&lt;P&gt;How to pass token to a glass table from a dashboard ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 13:32:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/588411#M48266</guid>
      <dc:creator>kumaranv</dc:creator>
      <dc:date>2022-03-10T13:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token to dropdown panels when token is coming from another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/588412#M48267</link>
      <description>&lt;P&gt;This seems like a different question - please can you raise it as such and give some more detail about what you are trying to do.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 13:36:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/588412#M48267</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-10T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token to dropdown panels when token is coming from another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/588431#M48268</link>
      <description>&lt;P&gt;I have a "Summary" glass table with "country" drop down and another "Country Detail" glass table with&amp;nbsp;"country" drop down also. when drill down from&amp;nbsp;"Summary" glass table to&amp;nbsp;"Country Detail" glass table using "Link to custom URL" i want to pass country value and set it in&amp;nbsp;"country" drop down of&amp;nbsp;"Country Detail" glass table. I hope i made it clear. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 14:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-to-dropdown-panels-when-token-is-coming-from/m-p/588431#M48268</guid>
      <dc:creator>kumaranv</dc:creator>
      <dc:date>2022-03-10T14:12:52Z</dc:date>
    </item>
  </channel>
</rss>

