<?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: Populating dropdown error :  Could not create search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331562#M21494</link>
    <description>&lt;P&gt;This has done the trick. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 05:09:54 GMT</pubDate>
    <dc:creator>Naren26</dc:creator>
    <dc:date>2017-12-14T05:09:54Z</dc:date>
    <item>
      <title>Populating dropdown error :  Could not create search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331559#M21491</link>
      <description>&lt;P&gt;I am trying to populate values to a dropdown using the search query. Following is the code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="sub_tok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Subdivisions List&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;subdivision&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;subdivision&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;`mymainlog` | rex field=_raw max_match=100 "&amp;lt;(&amp;lt;subdivision&amp;gt;\d{4})," | stats values(subdivision) as subDivs | mvexpand subDivs | rename subDivs as SubDivisionList &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I am getting this error  &lt;CODE&gt;Could not create search&lt;/CODE&gt;. But this query is running perfectly fine when executing it as a new search. I am getting almost 40 rows in the search results. But none is getting populated to the dropdown. I had even tried adding &lt;CODE&gt;head 5&lt;/CODE&gt;, in order to limit the number of rows, but of no luck.&lt;/P&gt;

&lt;P&gt;I am using Splunk version &lt;CODE&gt;6.5.4&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Please help me out.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 07:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331559#M21491</guid>
      <dc:creator>Naren26</dc:creator>
      <dc:date>2017-12-08T07:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Populating dropdown error :  Could not create search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331560#M21492</link>
      <description>&lt;P&gt;@Naren26, can you try escaping the angular brackets &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; with &lt;CODE&gt;&amp;amp;lt;&lt;/CODE&gt;and &lt;CODE&gt;&amp;amp;gt;&lt;/CODE&gt; in you search query for the drop down?&lt;/P&gt;

&lt;P&gt;Alternatively, you can save your working query as a dashboard panel and then copy paste to the input search query. Please try out and confirm.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 09:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331560#M21492</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-08T09:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Populating dropdown error :  Could not create search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331561#M21493</link>
      <description>&lt;P&gt;Your search query returns a field &lt;CODE&gt;SubDivisionList&lt;/CODE&gt; but your input is set to use the field &lt;CODE&gt;subdivision&lt;/CODE&gt;.  Your input is looking for a field that doesn't exist so it has no values to display.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 00:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331561#M21493</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-12-12T00:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Populating dropdown error :  Could not create search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331562#M21494</link>
      <description>&lt;P&gt;This has done the trick. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 05:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331562#M21494</guid>
      <dc:creator>Naren26</dc:creator>
      <dc:date>2017-12-14T05:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Populating dropdown error :  Could not create search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331563#M21495</link>
      <description>&lt;P&gt;@Naren26, I have converted to answer. Please accept to mark this as answered.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 08:26:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populating-dropdown-error-Could-not-create-search/m-p/331563#M21495</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-14T08:26:13Z</dc:date>
    </item>
  </channel>
</rss>

