<?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 Pass form field values to saved searches in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11737#M72</link>
    <description>&lt;P&gt;Hi  &lt;/P&gt;

&lt;P&gt;I have a dynamic form that displays a chart. I was wondering if the following is possible:  &lt;/P&gt;

&lt;P&gt;1) Execute a "Saved Search" to populate the values for one of the form field's (dropdown) list. I tried using &lt;STRONG&gt;&lt;CODE&gt;populatingSavedSearch&lt;/CODE&gt;&lt;/STRONG&gt; and it does not work  &lt;CODE&gt;[see example below]&lt;/CODE&gt;&lt;BR /&gt;
2) Execute the search for populating the chart in a schedule. I can do this for static searches. Since I have a need to pass in form field values to the search, this needs to work for dynamic searches. Can I replace the &lt;STRONG&gt;&lt;CODE&gt;searchTemplate&lt;/CODE&gt;&lt;/STRONG&gt; &lt;CODE&gt;[see example below]&lt;/CODE&gt; with a &lt;STRONG&gt;&lt;CODE&gt;searchName&lt;/CODE&gt;&lt;/STRONG&gt;? If not, is there another way to specify running the search on a schedule?  &lt;/P&gt;

&lt;P&gt;Example configuration (&lt;STRONG&gt;does not work&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;  
  &amp;lt;label&amp;gt;Saved Search&amp;lt;/label&amp;gt;  
  &amp;lt;fieldset&amp;gt;  
    &amp;lt;input type="dropdown" token="id"&amp;gt;
      &amp;lt;label&amp;gt;ID&amp;lt;/label&amp;gt;
      &amp;lt;prefix&amp;gt;id="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
      &amp;lt;populatingSavedSearch fieldForValue="idname" fieldForLabel="idname"&amp;gt;saved_values
      &amp;lt;/populatingSavedSearch&amp;gt;  
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;searchTemplate&amp;gt;`summary` | search $id$&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;title&amp;gt;My Dynamic Saved Search&amp;lt;/title&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;  
&amp;lt;/form&amp;gt;  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;saved_values:&lt;/STRONG&gt;&lt;BR /&gt;
    &lt;PRE&gt;index="list_app" | top limit=0 idname | fields + idname | sort idname&lt;/PRE&gt;  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;summary:&lt;/STRONG&gt;&lt;BR /&gt;
    &lt;PRE&gt;index="my_app" source="test*"&lt;/PRE&gt;  &lt;/P&gt;

&lt;P&gt;Thanks for your help.  &lt;/P&gt;

&lt;P&gt;Ranga  &lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2010 01:25:12 GMT</pubDate>
    <dc:creator>sranga</dc:creator>
    <dc:date>2010-04-20T01:25:12Z</dc:date>
    <item>
      <title>Pass form field values to saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11737#M72</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;

&lt;P&gt;I have a dynamic form that displays a chart. I was wondering if the following is possible:  &lt;/P&gt;

&lt;P&gt;1) Execute a "Saved Search" to populate the values for one of the form field's (dropdown) list. I tried using &lt;STRONG&gt;&lt;CODE&gt;populatingSavedSearch&lt;/CODE&gt;&lt;/STRONG&gt; and it does not work  &lt;CODE&gt;[see example below]&lt;/CODE&gt;&lt;BR /&gt;
2) Execute the search for populating the chart in a schedule. I can do this for static searches. Since I have a need to pass in form field values to the search, this needs to work for dynamic searches. Can I replace the &lt;STRONG&gt;&lt;CODE&gt;searchTemplate&lt;/CODE&gt;&lt;/STRONG&gt; &lt;CODE&gt;[see example below]&lt;/CODE&gt; with a &lt;STRONG&gt;&lt;CODE&gt;searchName&lt;/CODE&gt;&lt;/STRONG&gt;? If not, is there another way to specify running the search on a schedule?  &lt;/P&gt;

&lt;P&gt;Example configuration (&lt;STRONG&gt;does not work&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;  
  &amp;lt;label&amp;gt;Saved Search&amp;lt;/label&amp;gt;  
  &amp;lt;fieldset&amp;gt;  
    &amp;lt;input type="dropdown" token="id"&amp;gt;
      &amp;lt;label&amp;gt;ID&amp;lt;/label&amp;gt;
      &amp;lt;prefix&amp;gt;id="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
      &amp;lt;populatingSavedSearch fieldForValue="idname" fieldForLabel="idname"&amp;gt;saved_values
      &amp;lt;/populatingSavedSearch&amp;gt;  
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;searchTemplate&amp;gt;`summary` | search $id$&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;title&amp;gt;My Dynamic Saved Search&amp;lt;/title&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;  
&amp;lt;/form&amp;gt;  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;saved_values:&lt;/STRONG&gt;&lt;BR /&gt;
    &lt;PRE&gt;index="list_app" | top limit=0 idname | fields + idname | sort idname&lt;/PRE&gt;  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;summary:&lt;/STRONG&gt;&lt;BR /&gt;
    &lt;PRE&gt;index="my_app" source="test*"&lt;/PRE&gt;  &lt;/P&gt;

&lt;P&gt;Thanks for your help.  &lt;/P&gt;

&lt;P&gt;Ranga  &lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2010 01:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11737#M72</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2010-04-20T01:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pass form field values to saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11738#M73</link>
      <description>&lt;P&gt;you need to show us the definition of the &lt;CODE&gt;saved_values&lt;/CODE&gt; saved search, as well as probably some of the data or output of the search. incidentally, and this isn't fundamental to your UI issue, your searchTemplate should be &lt;CODE&gt;source="test*" AND $id$&lt;/CODE&gt;, not using the &lt;CODE&gt;search&lt;/CODE&gt; operator unnecessarily.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2010 07:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11738#M73</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-20T07:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pass form field values to saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11739#M74</link>
      <description>&lt;P&gt;Also, I don't understand what you mean when you say you want to run a search on a schedule, but also allow a user to dynamically populate in one of the (required, I would think) parameters of the search.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2010 07:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11739#M74</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-20T07:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pass form field values to saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11740#M75</link>
      <description>&lt;P&gt;I've added the &lt;EM&gt;saved_values&lt;/EM&gt; and &lt;EM&gt;summary&lt;/EM&gt; search/search macros to the original question (above). As for the scheduled search, I was wondering if a dynamic search could be scheduled to run the search for all of the values in the input list periodically.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2010 22:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11740#M75</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2010-04-20T22:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pass form field values to saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11741#M76</link>
      <description>&lt;P&gt;Ok if I am reading this correctly are you wanting a savedsearch to populate a drop down box.  Then from that drop down box you want to make a selection to generate a chart.  &lt;/P&gt;

&lt;P&gt;Have you tried using a SearchSelectLister:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.1/Developer/ModuleReference#SearchSelectLister" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.1/Developer/ModuleReference#SearchSelectLister&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.1/Developer/HowToUseListers#SearchSelectLister" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.1/Developer/HowToUseListers#SearchSelectLister&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then you could set the dashboard to refresh every X amount seconds and it will generate new data.  &lt;/P&gt;

&lt;P&gt;Travis.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 01:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11741#M76</guid>
      <dc:creator>thall79</dc:creator>
      <dc:date>2010-04-21T01:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pass form field values to saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11742#M77</link>
      <description>&lt;P&gt;Thanks. Yes, the problem statement you described is what I want. I shall look into the SearchSelectLister module. Would this result in the "default" value search being run every so often or would it actually run the search for all of the values in the list every X amount of time?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 03:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11742#M77</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2010-04-21T03:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass form field values to saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11743#M78</link>
      <description>&lt;P&gt;Everything on the Dashboard would be refreshed at X time. In my main dashboard I begin my XML like this to refresh everything every 10 minutes: &lt;VIEW template="dashboard.html" refresh="600"&gt;&lt;/VIEW&gt;&lt;/P&gt;

&lt;P&gt;Here is example of SearchSelectLister that I used for awhile, but rebuilt it using field searches and a LinkSwitcher which works better for my views.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/support/forum:SplunkDev/3806"&gt;http://www.splunk.com/support/forum:SplunkDev/3806&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Travis.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 04:18:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Pass-form-field-values-to-saved-searches/m-p/11743#M78</guid>
      <dc:creator>thall79</dc:creator>
      <dc:date>2010-04-21T04:18:27Z</dc:date>
    </item>
  </channel>
</rss>

