<?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: drop down populating the search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68797#M3669</link>
    <description>&lt;P&gt;got thanks....&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2011 18:50:43 GMT</pubDate>
    <dc:creator>DTERM</dc:creator>
    <dc:date>2011-09-01T18:50:43Z</dc:date>
    <item>
      <title>drop down populating the search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68794#M3666</link>
      <description>&lt;P&gt;I want to populate a dropdown search with the following results:&lt;/P&gt;

&lt;P&gt;index=myapp | top tgtHostname  | fields tgtHostname&lt;/P&gt;

&lt;P&gt;So the dropdown will only have the top 10 fields designatd as tgtHostname&lt;/P&gt;

&lt;P&gt;here is my code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;populatingSearch fieldForValue="tgtHostname" fieldForLabel="tgtHostname"&amp;gt;| metadata type=tgtHostname index=myapp&amp;lt;/populatingSearch&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why does that not work?  The drop down is visually there but it does not contain the list generated by the query.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 15:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68794#M3666</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2011-09-01T15:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: drop down populating the search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68795#M3667</link>
      <description>&lt;P&gt;You need two searches. &lt;BR /&gt;
 The second actually populates the selection box.&lt;BR /&gt;
 &lt;/P&gt;&lt;FORM&gt;&lt;BR /&gt;
    &lt;LABEL&gt;Simple select drop down&lt;/LABEL&gt;&lt;P&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- define master search template, with replacement tokens delimited with $ --&amp;gt;
&amp;lt;searchTemplate&amp;gt;index=_internal source=*metrics.log group="per_sourcetype_thruput" series=$series$ | fields eps, kb, kbps&amp;lt;/searchTemplate&amp;gt;
&amp;lt;earliestTime&amp;gt;-30d&amp;lt;/earliestTime&amp;gt;
&amp;lt;latestTime&amp;gt;-0d&amp;lt;/latestTime&amp;gt;

&amp;lt;fieldset&amp;gt;
    &amp;lt;!-- Define a simple dropdown form driven by a search --&amp;gt;
    &amp;lt;input type="dropdown" token="series"&amp;gt;
        &amp;lt;label&amp;gt;Select series&amp;lt;/label&amp;gt;
        &amp;lt;populatingSearch fieldForValue="series" fieldForLabel="series"&amp;gt;&amp;lt;![CDATA[index=_internal source=*metrics.log group="per_sourcetype_thruput" | top series]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
        &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;!-- output the results as a 50 row events table --&amp;gt;
    &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Matching events&amp;lt;/title&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;/table&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;/FORM&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 16:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68795#M3667</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2011-09-01T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: drop down populating the search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68796#M3668</link>
      <description>&lt;P&gt;I think I have that.  The query itself is not giving me the desired results.  &lt;/P&gt;

&lt;P&gt;Perhaps the better question would be, how to take this query&lt;/P&gt;

&lt;P&gt;index=myapp | top tgtHostname | fields tgtHostname&lt;/P&gt;

&lt;P&gt;ans place it in the populatingSearch tag?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 16:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68796#M3668</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2011-09-01T16:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: drop down populating the search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68797#M3669</link>
      <description>&lt;P&gt;got thanks....&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 18:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drop-down-populating-the-search/m-p/68797#M3669</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2011-09-01T18:50:43Z</dc:date>
    </item>
  </channel>
</rss>

