<?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: Populate dropdown form field values from a file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12394#M1014</link>
    <description>&lt;P&gt;The updated doc location for creating dropdowns in Splunk 5.0 is &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Viz/Exampleform#Create_a_dynamic_form_search_using_drop-downs"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Viz/Exampleform#Create_a_dynamic_form_search_using_drop-downs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Dec 2012 22:54:14 GMT</pubDate>
    <dc:creator>ChrisG</dc:creator>
    <dc:date>2012-12-21T22:54:14Z</dc:date>
    <item>
      <title>Populate dropdown form field values from a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12389#M1009</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;

&lt;P&gt;I was wondering if its possible to populate the values for a dropdown field of a form from a file through a &lt;STRONG&gt;&lt;CODE&gt;lookup&lt;/CODE&gt;&lt;/STRONG&gt; command.  &lt;/P&gt;

&lt;P&gt;The current setup uses the &lt;STRONG&gt;&lt;CODE&gt;populatingSearch&lt;/CODE&gt;&lt;/STRONG&gt; feature and it is very slow.  I don't want to add all of the values to the form field as &lt;CODE&gt;&amp;lt;choice&amp;gt;&lt;/CODE&gt; tags.  &lt;/P&gt;

&lt;P&gt;Thanks for your help.  &lt;/P&gt;

&lt;P&gt;Ranga&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 02:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12389#M1009</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2010-04-28T02:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown form field values from a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12390#M1010</link>
      <description>&lt;P&gt;You can use the &lt;CODE&gt;| inputlookup&lt;/CODE&gt; command to get the contents of a lookup file into your &lt;CODE&gt;populatingSearch&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 04:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12390#M1010</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-28T04:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown form field values from a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12391#M1011</link>
      <description>&lt;P&gt;Thanks. Is this faster than a &lt;CODE&gt;| savedsearch&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 05:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12391#M1011</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2010-04-28T05:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown form field values from a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12392#M1012</link>
      <description>&lt;P&gt;Generally, yes.  The inputlookup, at its simplest, just reads lines in from a CSV file so it's about as fast as it gets.  Savedsearch can be just as fast if there is a previously scheduled job artifact available -- otherwise a new search will be kicked off.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 05:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12392#M1012</guid>
      <dc:creator>Johnvey</dc:creator>
      <dc:date>2010-04-28T05:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown form field values from a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12393#M1013</link>
      <description>&lt;P&gt;Yes this is possible and its a great way to do it.  &lt;/P&gt;

&lt;P&gt;Assuming you're working with a simplified XML view, (ie where your outer tag is &amp;lt;form&amp;gt;), its extremely easy.  It's really just a matter of using the inputlookup command in the  element.&lt;/P&gt;

&lt;P&gt;See here for general discussion of how to configure a pulldown that gets its values from any search. and just picture the search in question starting with the inputlookup command. 
&lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/AddDropDowns" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Developer/AddDropDowns&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As always, remember to test out the search commands in the search UI to make sure you understand what it's doing and that the fields are coming out right. &lt;/P&gt;

&lt;P&gt;Also, if you're using the advanced XML already, the developer manual actually has an example written up about this topic specifically: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/AdvancedDev/LookupsAndViews" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/AdvancedDev/LookupsAndViews&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 14:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12393#M1013</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-04-28T14:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown form field values from a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12394#M1014</link>
      <description>&lt;P&gt;The updated doc location for creating dropdowns in Splunk 5.0 is &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Viz/Exampleform#Create_a_dynamic_form_search_using_drop-downs"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Viz/Exampleform#Create_a_dynamic_form_search_using_drop-downs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 22:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-dropdown-form-field-values-from-a-file/m-p/12394#M1014</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2012-12-21T22:54:14Z</dc:date>
    </item>
  </channel>
</rss>

