<?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 do you pass a single value to a drilldown to open another dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-pass-a-single-value-to-a-drilldown-to-open-another/m-p/422137#M27826</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;I want to pass the single value into a drilldown. I tried two options, but nothing has worked.&lt;/P&gt;

&lt;P&gt;Please help me in this:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I tried to click on the single value, and then on the same dashboard below table populates the details of the source.&lt;/LI&gt;
&lt;LI&gt;List item&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Code is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;TV Dashboard&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Starting...&amp;lt;/description&amp;gt;
  &amp;lt;row id="allpage_row1"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=metroday source="tcscheck.sh" STATUS=UP raxtype=* | dedup host | stats count(STATUS) as COUNT | rangemap field=COUNT low=12-99 elevated=9-11 severe=0-8&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-3m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="underLabel"&amp;gt;TCS&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.auto.interval"&amp;gt;120&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.time.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="link.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="source"&amp;gt;$row.source$&amp;lt;/set&amp;gt;
         &amp;lt;set token="table.source"&amp;gt;$row.source$&amp;lt;/set&amp;gt; 
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
  &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$source$"&amp;gt;
      &amp;lt;title&amp;gt;Source details&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index = metroday source=$source$
            | table host, count &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-7d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;-0d&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;OL&gt;
&lt;LI&gt;I have used is clicking on this dashboard and opens a new dashboard:&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Source is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;source="httppinger.sh" host=*JBO* SUCCESS | chart distinct_count(host) as COUNT | rangemap field=COUNT low=6-10 severe=0-5&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="underLabel"&amp;gt;Browser&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.auto.interval"&amp;gt;180&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.time.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="link.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;drilldown taregt="blank"&amp;gt;
          &amp;lt;link&amp;gt;tv_dashboard_drilldown?dashboard.hosttok=$click.value$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;`


Target code is: `&amp;lt;panel&amp;gt;
  &amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Target dashboard for drilldown&amp;lt;/label&amp;gt;
    &amp;lt;row&amp;gt;
       &amp;lt;table id="detail" depends="$source$"&amp;gt;
        &amp;lt;query&amp;gt;index = metroday source=$source$
            | table host, count, source | dedup host&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;-0d&amp;lt;/latest&amp;gt;
        &amp;lt;/table&amp;gt;
      &amp;lt;/row&amp;gt;
    &amp;lt;/form&amp;gt;  
    &amp;lt;/panel&amp;gt;`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But nothing is working.&lt;/P&gt;

&lt;P&gt;I am interested in a second option where I clicked on the number and it opens a new dashboard and passes the value to it.&lt;/P&gt;

&lt;P&gt;My source dashboard will look like the attachment where when I click on the number 3, it will open new dashboard and create the table that contains the details of all the 3 sourcetypes.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6649iF8B2F920FDE28BE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 12:32:30 GMT</pubDate>
    <dc:creator>ruchijain</dc:creator>
    <dc:date>2019-03-05T12:32:30Z</dc:date>
    <item>
      <title>How do you pass a single value to a drilldown to open another dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-pass-a-single-value-to-a-drilldown-to-open-another/m-p/422137#M27826</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;I want to pass the single value into a drilldown. I tried two options, but nothing has worked.&lt;/P&gt;

&lt;P&gt;Please help me in this:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I tried to click on the single value, and then on the same dashboard below table populates the details of the source.&lt;/LI&gt;
&lt;LI&gt;List item&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Code is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;TV Dashboard&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Starting...&amp;lt;/description&amp;gt;
  &amp;lt;row id="allpage_row1"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=metroday source="tcscheck.sh" STATUS=UP raxtype=* | dedup host | stats count(STATUS) as COUNT | rangemap field=COUNT low=12-99 elevated=9-11 severe=0-8&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-3m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="underLabel"&amp;gt;TCS&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.auto.interval"&amp;gt;120&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.time.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="link.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="source"&amp;gt;$row.source$&amp;lt;/set&amp;gt;
         &amp;lt;set token="table.source"&amp;gt;$row.source$&amp;lt;/set&amp;gt; 
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
  &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$source$"&amp;gt;
      &amp;lt;title&amp;gt;Source details&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index = metroday source=$source$
            | table host, count &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-7d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;-0d&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;OL&gt;
&lt;LI&gt;I have used is clicking on this dashboard and opens a new dashboard:&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Source is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;source="httppinger.sh" host=*JBO* SUCCESS | chart distinct_count(host) as COUNT | rangemap field=COUNT low=6-10 severe=0-5&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="underLabel"&amp;gt;Browser&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.auto.interval"&amp;gt;180&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.time.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="link.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;drilldown taregt="blank"&amp;gt;
          &amp;lt;link&amp;gt;tv_dashboard_drilldown?dashboard.hosttok=$click.value$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;`


Target code is: `&amp;lt;panel&amp;gt;
  &amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Target dashboard for drilldown&amp;lt;/label&amp;gt;
    &amp;lt;row&amp;gt;
       &amp;lt;table id="detail" depends="$source$"&amp;gt;
        &amp;lt;query&amp;gt;index = metroday source=$source$
            | table host, count, source | dedup host&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;-0d&amp;lt;/latest&amp;gt;
        &amp;lt;/table&amp;gt;
      &amp;lt;/row&amp;gt;
    &amp;lt;/form&amp;gt;  
    &amp;lt;/panel&amp;gt;`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But nothing is working.&lt;/P&gt;

&lt;P&gt;I am interested in a second option where I clicked on the number and it opens a new dashboard and passes the value to it.&lt;/P&gt;

&lt;P&gt;My source dashboard will look like the attachment where when I click on the number 3, it will open new dashboard and create the table that contains the details of all the 3 sourcetypes.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6649iF8B2F920FDE28BE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 12:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-pass-a-single-value-to-a-drilldown-to-open-another/m-p/422137#M27826</guid>
      <dc:creator>ruchijain</dc:creator>
      <dc:date>2019-03-05T12:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you pass a single value to a drilldown to open another dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-pass-a-single-value-to-a-drilldown-to-open-another/m-p/422138#M27827</link>
      <description>&lt;P&gt;You are referencing to a different token name than the one passen in the link...&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;tv_dashboard_drilldown?dashboard.hosttok=$click.value$&amp;lt;/link&amp;gt;&lt;/CODE&gt; here you are setting a parameter &lt;CODE&gt;dashboard.hosttok&lt;/CODE&gt; to be available to the target dashboard. But your qurey on the target is &lt;CODE&gt;&amp;lt;query&amp;gt;index = metroday source=$source$| table host, count, source | dedup host&amp;lt;/query&amp;gt;&lt;/CODE&gt;, where you aren't accessing the token at all. &lt;/P&gt;

&lt;P&gt;Your target query needs to reference &lt;CODE&gt;$dashboard.hosttok$&lt;/CODE&gt; as well.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 10:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-pass-a-single-value-to-a-drilldown-to-open-another/m-p/422138#M27827</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2019-03-06T10:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do you pass a single value to a drilldown to open another dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-pass-a-single-value-to-a-drilldown-to-open-another/m-p/422139#M27828</link>
      <description>&lt;P&gt;Hi DMohn,&lt;/P&gt;

&lt;P&gt;Thanks for replying that. I tried the below changes but still there is no data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Source code: 
 &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;source="httppinger.sh" host=*JBO* SUCCESS | chart distinct_count(host) as COUNT | rangemap field=COUNT low=6-10 severe=0-5&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="underLabel"&amp;gt;Browser&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.auto.interval"&amp;gt;180&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.time.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="link.visible"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;/app/ruchiapps/tv_dash_drill?sourcetok=$click.value$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;

Destination code: 
&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;TV Drilldown Dashboard&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Providing details on TV Dashboard object $sourcetok$&amp;lt;/description&amp;gt;
  &amp;lt;row id="page1_row1"&amp;gt;
&amp;lt;panel&amp;gt;
  &amp;lt;form&amp;gt;
       &amp;lt;table id="detail" depends="$sourcetok$"&amp;gt;
        &amp;lt;query&amp;gt;index = metroday source=$sourcetok$
            | table host, count, source | dedup host&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;-0d&amp;lt;/latest&amp;gt;
        &amp;lt;/table&amp;gt;
     &amp;lt;/form&amp;gt;  
    &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want from my previous picture that when i clicked on number 3 it will pass to another dashboard and that number 3 will display there and below there will be table which will display the details of all the three sources...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 13:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-pass-a-single-value-to-a-drilldown-to-open-another/m-p/422139#M27828</guid>
      <dc:creator>ruchijain</dc:creator>
      <dc:date>2019-03-06T13:25:11Z</dc:date>
    </item>
  </channel>
</rss>

