<?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: Populate dropdown from searchTemplate in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156612#M9630</link>
    <description>&lt;P&gt;I believe &lt;SEARCHTEMPLATE&gt; works only for row elements.&lt;/SEARCHTEMPLATE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2014 16:13:16 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-02-19T16:13:16Z</dc:date>
    <item>
      <title>Populate dropdown from searchTemplate</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156608#M9626</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;in Splunk 6 SimpleXML dashboards, there is support for a global search template (&lt;CODE&gt;&amp;lt;searchTemplate /&amp;gt;&lt;/CODE&gt;) and postprocessing (&lt;CODE&gt;&amp;lt;searchPostProcess /&amp;gt;&lt;/CODE&gt;) in panels later.&lt;BR /&gt;
Is it somehow possible to postprocess the searchtemplate to populate a dropdown input?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Simon&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 11:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156608#M9626</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2014-02-19T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown from searchTemplate</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156609#M9627</link>
      <description>&lt;P&gt;Hi Simon,&lt;/P&gt;

&lt;P&gt;I have some dashboards that populate a dropdown, it's like this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;fieldset&amp;gt;&lt;BR /&gt;
    &amp;lt;input type="dropdown" token="dropdownlabel"&amp;gt;&lt;BR /&gt;
      &amp;lt;label&amp;gt;Select:&amp;lt;/label&amp;gt;&lt;BR /&gt;
      &amp;lt;populatingSearch fieldForValue="dropdownlabel" fieldForLabel="dropdownlabel"&amp;gt;&lt;BR /&gt;
        &amp;lt;![CDATA[sourcetype="src" earliest=-7d | stats count by dropdownlabel]]&amp;gt;&lt;BR /&gt;
      &amp;lt;/populatingSearch&amp;gt;&lt;BR /&gt;
    &amp;lt;/input&amp;gt;&lt;BR /&gt;
    &amp;lt;input type="time"&amp;gt;&lt;BR /&gt;
      &amp;lt;default&amp;gt;Last 7 days&amp;lt;/default&amp;gt;&lt;BR /&gt;
    &amp;lt;/input&amp;gt;&lt;BR /&gt;
  &amp;lt;/fieldset&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;You just needs to wait some seconds until the search return the list of dropdown and then select the content.&lt;BR /&gt;
Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 12:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156609#M9627</guid>
      <dc:creator>gfreitas</dc:creator>
      <dc:date>2014-02-19T12:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown from searchTemplate</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156610#M9628</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
Thanks I was aware of this option!&lt;BR /&gt;
I rather was searching for a solution to only have one running search,e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;searchTemplate&amp;gt;index=_internal&amp;lt;/searchTemplate&amp;gt;
  &amp;lt;fieldset&amp;gt;
    &amp;lt;input type="dropdown" token="sourcetype=" fieldForValue="sourcetype" fieldForLabel="label"&amp;gt;
     &amp;lt;searchPostProcess&amp;gt;stats count by sourcetype | eval label=sourcetype." (".count.")"&amp;lt;/searchPostProcess&amp;gt;
     &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
     &amp;lt;default&amp;gt;*&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:03:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156610#M9628</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2014-02-19T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown from searchTemplate</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156611#M9629</link>
      <description>&lt;P&gt;And later of course&lt;/P&gt;

&lt;P&gt;Hello,&lt;BR /&gt;
Thanks I was aware of this option!&lt;BR /&gt;
I rather was searching for a solution to only have one running search,e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;searchPostProcess&amp;gt;search sourcetype="$sourcetype$"|  timechart count by sourcetype
      ...
    &amp;lt;/chart&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156611#M9629</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2014-02-19T13:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown from searchTemplate</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156612#M9630</link>
      <description>&lt;P&gt;I believe &lt;SEARCHTEMPLATE&gt; works only for row elements.&lt;/SEARCHTEMPLATE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156612#M9630</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-19T16:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown from searchTemplate</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156613#M9631</link>
      <description>&lt;P&gt;Anyone from Splunk able to comment on this? I would also like to postprocess the search template to populate my values in the dropdown menu.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 18:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156613#M9631</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2014-05-05T18:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown from searchTemplate</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156614#M9632</link>
      <description>&lt;P&gt;did you ever find an answer to this?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 22:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-from-searchTemplate/m-p/156614#M9632</guid>
      <dc:creator>helenashton</dc:creator>
      <dc:date>2015-01-08T22:44:17Z</dc:date>
    </item>
  </channel>
</rss>

