<?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 Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts) in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301871#M19272</link>
    <description>&lt;P&gt;hey @lguinn, when did the search format &lt;CODE&gt;&amp;lt;FIELD&amp;gt; IN (...)&lt;/CODE&gt; get introduced for base searches? That is new to me.&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 18:57:10 GMT</pubDate>
    <dc:creator>rjthibod</dc:creator>
    <dc:date>2017-05-23T18:57:10Z</dc:date>
    <item>
      <title>How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301868#M19269</link>
      <description>&lt;P&gt;I have two multi select drop downs. When I select one or more from first drop down, the second drop down should populate accordingly and at the same time need to pass values to Pivots and charts of dashboard panels. &lt;/P&gt;

&lt;P&gt;When I select more than one item form first multiselect I see 'search produced no results'&lt;/P&gt;

&lt;P&gt;Please someone give me an idea. My code looks like as below&lt;/P&gt;

&lt;P&gt;Dynamic Multi Select Support&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="time_token"&amp;gt;
  &amp;lt;label&amp;gt;Select Time Range&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="multiselect" token="selected_host" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Select the Host&amp;lt;/label&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;index=temptesting_007 | stats count by host | sort limit=100 host&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;host&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;host&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;delimiter&amp;gt; , &amp;lt;/delimiter&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="multiselect" token="source_type" searchWhenChanged="false"&amp;gt;
  &amp;lt;label&amp;gt;Select Log Type&amp;lt;/label&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;index=temptesting_007 host= $selected_host$ | stats count by sourcetype | sort limit=100 sourcetype&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;sourcetype&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;sourcetype&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;
  &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;single&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| pivot My_Model_2 My_Root_Search_Object count(My_Root_Search_Object) AS "Count of Logs"  FILTER host in ($selected_host$) FILTER sourcetype in ($source_type$) ROWSUMMARY 0 COLSUMMARY 0 NUMCOLS 0 SHOWOTHER 1&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
    &amp;lt;option name="colorMode"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="numberPrecision"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="showSparkline"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="showTrendIndicator"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="trendColorInterpretation"&amp;gt;standard&amp;lt;/option&amp;gt;
    &amp;lt;option name="trendDisplayMode"&amp;gt;absolute&amp;lt;/option&amp;gt;
    &amp;lt;option name="unitPosition"&amp;gt;after&amp;lt;/option&amp;gt;
    &amp;lt;option name="useColors"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="useThousandSeparators"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="linkView"&amp;gt;search&amp;lt;/option&amp;gt;
    &amp;lt;option name="list.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
    &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
    &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
    &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
    &amp;lt;fields&amp;gt;["host","source","sourcetype"]&amp;lt;/fields&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
  &amp;lt;/single&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| pivot My_Model_2 My_Root_Search_Object count(My_Root_Search_Object) AS "Count of My Root Search Object" SPLITROW host AS Host SPLITROW sourcetype AS "Source Type" FILTER host in ($selected_host$) FILTER sourcetype in ($source_type$) SORT 100 host ROWSUMMARY 0 COLSUMMARY 0 NUMCOLS 0 SHOWOTHER 1&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
    &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
    &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 May 2017 19:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301868#M19269</guid>
      <dc:creator>sanjeevt</dc:creator>
      <dc:date>2017-05-19T19:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301869#M19270</link>
      <description>&lt;P&gt;The syntax in line 22 is wrong. If you have selected "hostA" and "hostB" in the first multiselect, the query in line 22 becomes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=temptesting_007 host= hostA , hostB | stats count by sourcetype | sort limit=100 sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Starting with Splunk 6.6, you can use the following syntax:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=temptesting_007 host IN ( $selected_host$ ) | stats count by sourcetype | sort limit=100 sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 May 2017 05:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301869#M19270</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-05-22T05:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301870#M19271</link>
      <description>&lt;P&gt;Thank you . It worked &lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301870#M19271</guid>
      <dc:creator>sanjeevt</dc:creator>
      <dc:date>2017-05-23T18:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301871#M19272</link>
      <description>&lt;P&gt;hey @lguinn, when did the search format &lt;CODE&gt;&amp;lt;FIELD&amp;gt; IN (...)&lt;/CODE&gt; get introduced for base searches? That is new to me.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301871#M19272</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-05-23T18:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301872#M19273</link>
      <description>&lt;P&gt;Nevermind, I found the note in the SPL docs for the &lt;CODE&gt;search&lt;/CODE&gt; command. Looks like it is new to 6.6. That is super helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 19:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301872#M19273</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-05-23T19:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301873#M19274</link>
      <description>&lt;P&gt;Please "Accept" the other answer and change this thread to a comment. You currently have it posted as an answer.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 19:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301873#M19274</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-05-23T19:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301874#M19275</link>
      <description>&lt;P&gt;This works perfectly for me, thanks @lguinn !&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 04:39:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/301874#M19275</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-11-30T04:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/596404#M48901</link>
      <description>&lt;P&gt;Make sure to write "IN" in capital letters otherwise it won't work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 17:29:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/596404#M48901</guid>
      <dc:creator>maxiveil</dc:creator>
      <dc:date>2022-05-04T17:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How use multiselect to pass multiple selected values to second drop down and to dashboard panels (Pivots and charts)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/602319#M49479</link>
      <description>&lt;P&gt;Dude !!!!! Your answer saved my life !!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_blowing_a_kiss:"&gt;😘&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2022 21:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-use-multiselect-to-pass-multiple-selected-values-to-second/m-p/602319#M49479</guid>
      <dc:creator>paritoshs24</dc:creator>
      <dc:date>2022-06-18T21:19:41Z</dc:date>
    </item>
  </channel>
</rss>

