<?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 to edit my XML and search query to automatically populate a drop-down menu? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-XML-and-search-query-to-automatically-populate-a/m-p/156182#M43943</link>
    <description>&lt;P&gt;As per my understading all you want is to populate dropdowns with customerID and operationID. In that case using stats command makes no sense.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Modified query 1:&lt;/STRONG&gt;  &lt;EM&gt;index="my_index" | table customerID | dedup customerID | sort -customerID  | rename customerID AS customer&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Modified query 2:&lt;/STRONG&gt;  &lt;EM&gt;index="my_index" | table operationID | dedup operationID | sort -operationID  | rename operationID AS operation&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Nov 2014 09:04:44 GMT</pubDate>
    <dc:creator>jitsinha</dc:creator>
    <dc:date>2014-11-27T09:04:44Z</dc:date>
    <item>
      <title>How to edit my XML and search query to automatically populate a drop-down menu?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-XML-and-search-query-to-automatically-populate-a/m-p/156181#M43942</link>
      <description>&lt;P&gt;Hello, I'm trying to use the xml below to automatically populate a dropdown menu, but any result is returned and the page remains only as "loading...".  Please can someone help me improve this query or correct if wrong? Thanks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;input type="dropdown" token="customer"&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;populatingSearch fieldForValue="customer" fieldForLabel="customer"&amp;gt;&amp;lt;![CDATA[ index="my_index" | dedup customerID | stats count by customerID | sort -customerID | table customerID | rename customerID AS customer ]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;

&amp;lt;!-- SELECT CUSTOMER OPERATION --&amp;gt;
    &amp;lt;input type="dropdown" token="operation"&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;populatingSearch fieldForValue="operation" fieldForLabel="operation"&amp;gt;&amp;lt;![CDATA[ index="my_index" | dedup operationID | stats count by operationID | sort -operationID | table operationID | rename operationID AS operation ]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Oct 2014 17:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-XML-and-search-query-to-automatically-populate-a/m-p/156181#M43942</guid>
      <dc:creator>PabloBonilha</dc:creator>
      <dc:date>2014-10-08T17:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my XML and search query to automatically populate a drop-down menu?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-XML-and-search-query-to-automatically-populate-a/m-p/156182#M43943</link>
      <description>&lt;P&gt;As per my understading all you want is to populate dropdowns with customerID and operationID. In that case using stats command makes no sense.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Modified query 1:&lt;/STRONG&gt;  &lt;EM&gt;index="my_index" | table customerID | dedup customerID | sort -customerID  | rename customerID AS customer&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Modified query 2:&lt;/STRONG&gt;  &lt;EM&gt;index="my_index" | table operationID | dedup operationID | sort -operationID  | rename operationID AS operation&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-XML-and-search-query-to-automatically-populate-a/m-p/156182#M43943</guid>
      <dc:creator>jitsinha</dc:creator>
      <dc:date>2014-11-27T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my XML and search query to automatically populate a drop-down menu?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-XML-and-search-query-to-automatically-populate-a/m-p/156183#M43944</link>
      <description>&lt;P&gt;Hi, if you have "loading" in your page then, it is not a populate search the problem if not you should have "could not populate the search". Could you send all your xml source code?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-XML-and-search-query-to-automatically-populate-a/m-p/156183#M43944</guid>
      <dc:creator>btt</dc:creator>
      <dc:date>2014-12-17T10:16:51Z</dc:date>
    </item>
  </channel>
</rss>

