<?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: Issue with simple XML dropdown search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37859#M1741</link>
    <description>&lt;P&gt;Thanks Ayn, I knew it would be blindingly obvious... I was determined in thinking it was the search string, so didn't look else where!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2011 11:49:45 GMT</pubDate>
    <dc:creator>MHibbin</dc:creator>
    <dc:date>2011-12-20T11:49:45Z</dc:date>
    <item>
      <title>Issue with simple XML dropdown search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37857#M1739</link>
      <description>&lt;P&gt;SplunkBase,&lt;/P&gt;

&lt;P&gt;I have a query about dropdown searches using the simple XML editor in Splunk. I fear I am missing something blindingly obvious, but I just can't seem to see it.&lt;/P&gt;

&lt;P&gt;I started by creating a view which includes a search (text input) for a user and displays a table of results, which works. However when I change the input to dropdown, and add the populating search. I receive the following error...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SearchLister module SearchSelectLister_0_1_0 was not given a search or a saved search name to power itself and thus cannot render any data.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Below is the XML I have edited...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;User Search (DropDown Selecter)&amp;lt;/label&amp;gt;
  &amp;lt;searchTemplate&amp;gt;sourcetype=logs user=$username$ | table _time user message&amp;lt;/searchTemplate&amp;gt;

  &amp;lt;fieldset&amp;gt;
    &amp;lt;input type="dropdown" token="username" /&amp;gt;
      &amp;lt;label&amp;gt;Select user name&amp;lt;/label&amp;gt;
      &amp;lt;populatingSearch fieldForValue="username" fieldForLabel="username"&amp;gt;&amp;lt;![CDATA[sourcetype=logs | rex field=user "(?P&amp;lt;username&amp;gt;\w+)" | stats count by username]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;/fieldset&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;table&amp;gt;
      &amp;lt;title&amp;gt;User message activity (Last 100)&amp;lt;/title&amp;gt;
        &amp;lt;option name="showPager"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
    &amp;lt;/table&amp;gt;
  &amp;lt;/row&amp;gt;

&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any assistance would be appreciated and many thanks in advance.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 10:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37857#M1739</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-20T10:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with simple XML dropdown search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37858#M1740</link>
      <description>&lt;P&gt;You're closing the dropdown &lt;CODE&gt;&amp;lt;input&amp;gt;&lt;/CODE&gt; tag immediately but you should be keeping it open and run your &lt;CODE&gt;populatingSearch&lt;/CODE&gt; inside the &lt;CODE&gt;input&lt;/CODE&gt; section. So:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="username"&amp;gt;
  &amp;lt;label&amp;gt;Select user name&amp;lt;/label&amp;gt;
  &amp;lt;populatingSearch fieldForValue="username" fieldForLabel="username"&amp;gt;&amp;lt;![CDATA[sourcetype=logs | rex field=user "(?P&amp;lt;username&amp;gt;\w+)" | stats count by username]]&amp;gt;&amp;lt;/populatingSearch&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>Tue, 20 Dec 2011 11:47:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37858#M1740</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-12-20T11:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with simple XML dropdown search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37859#M1741</link>
      <description>&lt;P&gt;Thanks Ayn, I knew it would be blindingly obvious... I was determined in thinking it was the search string, so didn't look else where!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 11:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37859#M1741</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-20T11:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with simple XML dropdown search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37860#M1742</link>
      <description>&lt;P&gt;On a different note, @MHibbin, is your populating search taking an incredibly long time to load for the dropdown? I have a problem where my populating search takes 30min+ to complete. The only solution I could think of was listing static options for my dropdown... any ideas to speed the populating search up? ~thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 16:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37860#M1742</guid>
      <dc:creator>monicato</dc:creator>
      <dc:date>2012-07-18T16:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with simple XML dropdown search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37861#M1743</link>
      <description>&lt;P&gt;@monicato, No I never had those issues, what is the search you are using? ... how long does it take running in flashtimeline?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 20:54:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37861#M1743</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-07-18T20:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with simple XML dropdown search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37862#M1744</link>
      <description>&lt;P&gt;@MHibbin, I'm not quite sure, but my populating search is basically searching through millions of logs to find the name of different products. And the complete search returns about 150 different product names. Is there any way to have a saved search and then i could extract the saved search for all the products names instead of having to go through all the logs each time my view is loaded?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 21:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37862#M1744</guid>
      <dc:creator>monicato</dc:creator>
      <dc:date>2012-07-18T21:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with simple XML dropdown search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37863#M1745</link>
      <description>&lt;P&gt;That is possible. It might be better to discuss that in the thread you created yourself though... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 21:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-simple-XML-dropdown-search/m-p/37863#M1745</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-18T21:22:05Z</dc:date>
    </item>
  </channel>
</rss>

