<?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 Splunk 6 Simple xml dropdown, how to select first value in the list in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184307#M11402</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have dashboard created in Splunk 6, simple xml. It has a dropdown input which is getting populated from a lookup file. I would like to select the first value in the dropdown, when the dashboard is loaded.&lt;/P&gt;

&lt;P&gt;Any idea how to do the same? I am breaking my head for 3 hrs but got nothing.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2013 22:14:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2013-12-18T22:14:06Z</dc:date>
    <item>
      <title>Splunk 6 Simple xml dropdown, how to select first value in the list</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184307#M11402</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have dashboard created in Splunk 6, simple xml. It has a dropdown input which is getting populated from a lookup file. I would like to select the first value in the dropdown, when the dashboard is loaded.&lt;/P&gt;

&lt;P&gt;Any idea how to do the same? I am breaking my head for 3 hrs but got nothing.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2013 22:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184307#M11402</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-18T22:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Simple xml dropdown, how to select first value in the list</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184308#M11403</link>
      <description>&lt;P&gt;Same issue, here is the code that I am using, and its not auto populating.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="host"&amp;gt;
  &amp;lt;label&amp;gt;Host&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;All Sites&amp;lt;/default&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All Sites&amp;lt;/choice&amp;gt;

  &amp;lt;populatingSearch fieldForValue="host" fieldForLabel="host"&amp;gt;
    &amp;lt;![CDATA[| inputlookup current_connections_dropdown.csv
      | fields host
      | dedup host
      | sort host]]&amp;gt;
  &amp;lt;/populatingSearch&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2014 19:41:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184308#M11403</guid>
      <dc:creator>jtrujillo</dc:creator>
      <dc:date>2014-02-13T19:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Simple xml dropdown, how to select first value in the list</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184309#M11404</link>
      <description>&lt;P&gt;Unfortunately it seems to work in version 5.0.3.  It takes the first value of my input lookup file which is NOT what I want.  I want it to just not run and allow the user to select to search.  Guess I need to upgrade to 6 and you need to downgrade to 5 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 23:39:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184309#M11404</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2014-03-17T23:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Simple xml dropdown, how to select first value in the list</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184310#M11405</link>
      <description>&lt;P&gt;As of 6.0.2, you have the ability to configure the input to populate with the first selection on page load.  It should look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="dropdown" token="sourcetype" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Sourcetype&amp;lt;/label&amp;gt;
      &amp;lt;selectFirstChoice&amp;gt;true&amp;lt;/selectFirstChoice&amp;gt;
      &amp;lt;prefix&amp;gt;sourcetype="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
      &amp;lt;choice value="*"&amp;gt;ANY&amp;lt;/choice&amp;gt;
      &amp;lt;populatingSearch fieldForLabel="sourcetype" fieldForValue="sourcetype" earliest="-24h" latest="now"&amp;gt;index=_internal
| stats count by sourcetype
| sort asc sourcetype&amp;lt;/populatingSearch&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Mar 2014 00:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184310#M11405</guid>
      <dc:creator>nfilippi_splunk</dc:creator>
      <dc:date>2014-03-18T00:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Simple xml dropdown, how to select first value in the list</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184311#M11406</link>
      <description>&lt;P&gt;Thanks its working on 6.0.2 Splunk. Just had to remove the "*, ANY" part.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 20:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184311#M11406</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-01T20:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Simple xml dropdown, how to select first value in the list</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184312#M11407</link>
      <description>&lt;P&gt;Upgrade to 6.0.2 Maintenance version and then use options mentioned in the accepted answer. The property is not present in documentation though.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 20:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Simple-xml-dropdown-how-to-select-first-value-in-the/m-p/184312#M11407</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-01T20:10:44Z</dc:date>
    </item>
  </channel>
</rss>

