<?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 I get unique values in form dropdown? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87424#M18124</link>
    <description>&lt;P&gt;I want the list in the dropdown to be unique values in a form.&lt;/P&gt;

&lt;P&gt;What do I have to put in the 'populatingSearch' element to make sure every value is unique?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2013 15:59:53 GMT</pubDate>
    <dc:creator>oriches</dc:creator>
    <dc:date>2013-07-08T15:59:53Z</dc:date>
    <item>
      <title>How do I get unique values in form dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87424#M18124</link>
      <description>&lt;P&gt;I want the list in the dropdown to be unique values in a form.&lt;/P&gt;

&lt;P&gt;What do I have to put in the 'populatingSearch' element to make sure every value is unique?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 15:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87424#M18124</guid>
      <dc:creator>oriches</dc:creator>
      <dc:date>2013-07-08T15:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get unique values in form dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87425#M18125</link>
      <description>&lt;P&gt;Let's say your're populating the dropdown with hosts, you can dedup a few ways in Splunk.&lt;/P&gt;

&lt;P&gt;One way would be to dedup the field host:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Another would be to use stats&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(host) as host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I generally use the dedup command in this situation:  &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Dedup"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Dedup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 16:19:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87425#M18125</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2013-07-08T16:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get unique values in form dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87426#M18126</link>
      <description>&lt;P&gt;I tried '| dedup host' but it returned nothing...&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 16:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87426#M18126</guid>
      <dc:creator>oriches</dc:creator>
      <dc:date>2013-07-08T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get unique values in form dropdown?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87427#M18127</link>
      <description>&lt;P&gt;I got it to work with the following 'host | dedup host'&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 16:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-unique-values-in-form-dropdown/m-p/87427#M18127</guid>
      <dc:creator>oriches</dc:creator>
      <dc:date>2013-07-08T16:33:04Z</dc:date>
    </item>
  </channel>
</rss>

