<?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: nested dropdowns in dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373338#M39271</link>
    <description>&lt;P&gt;Hi.  So I got it to work with the script dashboard example in Splunkbase for cascade drop down.  I don't understand why the following was needed as described in the Splunk cascade &lt;/P&gt;

&lt;P&gt;|stats count by host (in my case)    or |stats count by sourcetype (as stated in the splunk dashboard example).     Couldn't I have just used |search host   ????? &lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 20:41:04 GMT</pubDate>
    <dc:creator>dxw350</dc:creator>
    <dc:date>2017-06-28T20:41:04Z</dc:date>
    <item>
      <title>nested dropdowns in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373334#M39267</link>
      <description>&lt;P&gt;If you have two dropdowns for a dashboard where the second dropdown is dependent on the first, is there a way to create this using dynamic fields in the UI creation tab?  I only found that you need to use something like "populatingsearch" but that is not part of the UI creation tab as follows and it is not working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;label&amp;gt;Firewall&amp;lt;/label&amp;gt;
  &amp;lt;choice value="Tfw*"&amp;gt;T firewalls&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="Xfw*"&amp;gt;X firewalls&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All Locations (includes JC)&amp;lt;/choice&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;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="param_fwname"&amp;gt;
  &amp;lt;label&amp;gt;fwname&amp;lt;/label&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;populatingsearch&amp;gt;earliest="0" latest="" fieldForLabel="fwname" fieldForValue="fwname"  index=firewall_juniper param_fw=$param_fw$|dedup param_fw&amp;lt;/populatingsearch&amp;gt;
  &amp;lt;choice value="*"&amp;gt;all&amp;lt;/choice&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:53:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373334#M39267</guid>
      <dc:creator>dxw350</dc:creator>
      <dc:date>2017-06-28T13:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: nested dropdowns in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373335#M39268</link>
      <description>&lt;P&gt;Based on version of Splunk you're using, the populatingsearch is replaced by just 'search'. See this&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/PanelreferenceforSimplifiedXML#dropdown"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/PanelreferenceforSimplifiedXML#dropdown&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, download and look at Splunk 6.x dashboard example app &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt; for cascading inputs/dropdowns and other many examples.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373335#M39268</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-28T14:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: nested dropdowns in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373336#M39269</link>
      <description>&lt;P&gt;thank you.  I will look at the search since it looks like that replaced "populatingsearch" in my 6.5 version&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373336#M39269</guid>
      <dc:creator>dxw350</dc:creator>
      <dc:date>2017-06-28T15:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: nested dropdowns in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373337#M39270</link>
      <description>&lt;P&gt;@dxw350, you have mentioned two dropdowns in your question however, your first input seems to have &lt;STRONG&gt;delimiter&lt;/STRONG&gt; tag which is not supported by Dropdown. Do you want to use multiselect or dropdown as first input?&lt;/P&gt;

&lt;P&gt;Following should get you two dropdowns where 2nd runs a search based on value selected in the first dropdown.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;input type="dropdown" token="param_fw" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Firewall&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Tfw*"&amp;gt;T firewalls&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Xfw*"&amp;gt;X firewalls&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All Locations (includes JC)&amp;lt;/choice&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;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="param_fwname"&amp;gt;
      &amp;lt;label&amp;gt;fwname&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;all&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=firewall_juniper param_fw=$param_fw$ earliest="-1d@d" latest=now
 | head 1&amp;lt;/query&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;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373337#M39270</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-06-28T19:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: nested dropdowns in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373338#M39271</link>
      <description>&lt;P&gt;Hi.  So I got it to work with the script dashboard example in Splunkbase for cascade drop down.  I don't understand why the following was needed as described in the Splunk cascade &lt;/P&gt;

&lt;P&gt;|stats count by host (in my case)    or |stats count by sourcetype (as stated in the splunk dashboard example).     Couldn't I have just used |search host   ????? &lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373338#M39271</guid>
      <dc:creator>dxw350</dc:creator>
      <dc:date>2017-06-28T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: nested dropdowns in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373339#M39272</link>
      <description>&lt;P&gt;&lt;CODE&gt;| stats count by host&lt;/CODE&gt; is a way of getting unique hosts (since stats work better than most other resource consuming commands)&lt;/P&gt;

&lt;P&gt;another option instead of stats could have been &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dedup host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In my example above I had used&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This one seemed to be the fastest based on your use-case as I understood. Please run Job Inspector and analyze your various search performance prior to choosing any specific approach.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/nested-dropdowns-in-dashboard/m-p/373339#M39272</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-06-28T20:57:45Z</dc:date>
    </item>
  </channel>
</rss>

