<?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: Controlling search execution via dashboard inputs in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356834#M23249</link>
    <description>&lt;P&gt;Can you help explain what the where statement is doing in your example?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 11:44:08 GMT</pubDate>
    <dc:creator>mschellhouse</dc:creator>
    <dc:date>2017-09-26T11:44:08Z</dc:date>
    <item>
      <title>Controlling search execution via dashboard inputs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356832#M23247</link>
      <description>&lt;P&gt;We want to be able to save specific dashboard inputs using outputlookup only if the user has selected a control (check box, radio button,??).  All other panels should display as normal.  Essentially what we want to do is store the timeframes entered in a "valid results" table that we can then use to recall the same dashboard output again at a later time.  Any suggestions on the best way to implement this?  &lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356832#M23247</guid>
      <dc:creator>mschellhouse</dc:creator>
      <dc:date>2017-09-25T13:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling search execution via dashboard inputs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356833#M23248</link>
      <description>&lt;P&gt;Anywhere in your search, you can add this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| appendpipe 
     [| addinfo 
      | stats min(info_min_time) as min_time  max(info_max_time) as max_time 
      | eval search_time = now()
      | table search_time min_time max_time
      | outputcsv mytempresults.csv 
      | where false()
      ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That saves your data to a temp file, overwriting the file every time it runs.  &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Next, you create a hidden panel using depends/rejects, with its own search code.  When your control is checked, pressed, whatever, it sets the depends token and allows the append search to run, which also blanks out the temp file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      | inputcsv mytempresults.csv $mynulldependstoken$
      | outputcsv append=t myrealresults.csv
      | where false()
      | outputcsv mytempresults.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to set a postprocess in the form that will clear out the token again, and you're done.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 15:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356833#M23248</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-25T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling search execution via dashboard inputs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356834#M23249</link>
      <description>&lt;P&gt;Can you help explain what the where statement is doing in your example?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 11:44:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356834#M23249</guid>
      <dc:creator>mschellhouse</dc:creator>
      <dc:date>2017-09-26T11:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling search execution via dashboard inputs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356835#M23250</link>
      <description>&lt;P&gt;it is getting rid of every single transaction that was created, so it doesn't get appended to the results.  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;appendpipe&lt;/CODE&gt; processes all your events through its search and then adds whatever comes out to the end of the result set.  &lt;CODE&gt;|where false()&lt;/CODE&gt; ensures that there are no actual additions.  &lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 18:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356835#M23250</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-26T18:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling search execution via dashboard inputs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356836#M23251</link>
      <description>&lt;P&gt;Hey @mschellhouse, if @DalJeanis solved your problem, please don't forget to accept an answer! You can upvote posts as well. (Karma points will be awarded for either action.) Happy Splunking!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 21:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Controlling-search-execution-via-dashboard-inputs/m-p/356836#M23251</guid>
      <dc:creator>lfedak_splunk</dc:creator>
      <dc:date>2017-09-26T21:26:31Z</dc:date>
    </item>
  </channel>
</rss>

