<?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: Override basesearch saved search with timerange token and convert to inline in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216140#M13488</link>
    <description>&lt;P&gt;Understood... &lt;/P&gt;

&lt;P&gt;The idea would be to have the dashboard refresh every 5 minutes in monitor mode by using the scheduled search history.  And if a user changes the timerange selector it goes into inline mode.  &lt;/P&gt;

&lt;P&gt;I guess I could have two dashboards, one for monitoring and one for historical research..  &lt;/P&gt;

&lt;P&gt;Either way, appreciate your help. &lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2016 21:24:33 GMT</pubDate>
    <dc:creator>subtrakt</dc:creator>
    <dc:date>2016-09-28T21:24:33Z</dc:date>
    <item>
      <title>Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216132#M13480</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I like the simple xml post process and how fast it is when filtering data on a savedsearch.  &lt;/P&gt;

&lt;P&gt;However, on my dashboard, sometimes i want to override the saved search and expand the time range.&lt;/P&gt;

&lt;P&gt;Is there any way to override saved search timerange and execute an inline search on the basesearch? This view is using simple xml postprocess and timerange button.   Can a time token manually override the basesearch query?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="text" token="FindHost" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;HOST FILTER&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;

     &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;

  &amp;lt;/fieldset&amp;gt;
      &amp;lt;search id="BaseSearch1" ref="ALERTcht"&amp;gt;&amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;

      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;TEST&amp;lt;/title&amp;gt;
        &amp;lt;search base="BaseSearch1"&amp;gt;
          &amp;lt;query&amp;gt;
            &amp;lt;![CDATA[| search host="*$FindHost$*" ]]&amp;gt;
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="displayRowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="height"&amp;gt;300px&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="earliest"&amp;gt;$field1$&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.auto.interval"&amp;gt;300&amp;lt;/option&amp;gt;
        &amp;lt;format type="sparkline" field="TREND"&amp;gt;
          &amp;lt;option name="type"&amp;gt;bar&amp;lt;/option&amp;gt;
          &amp;lt;option name="height"&amp;gt;20px&amp;lt;/option&amp;gt;
          &amp;lt;!-- Use colorMap to map specific values to selected colors --&amp;gt;
          &amp;lt;option name="colorMap"&amp;gt;
            &amp;lt;option name="1:"&amp;gt;#FF0000&amp;lt;/option&amp;gt;
            &amp;lt;option name=":0"&amp;gt;#9ac23c&amp;lt;/option&amp;gt;
          &amp;lt;/option&amp;gt;
          &amp;lt;option name="barWidth"&amp;gt;5px&amp;lt;/option&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2016 16:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216132#M13480</guid>
      <dc:creator>subtrakt</dc:creator>
      <dc:date>2016-09-28T16:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216133#M13481</link>
      <description>&lt;P&gt;It can. Just update the base search portion with this&lt;/P&gt;

&lt;P&gt;Replace &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;search id="BaseSearch1" ref="ALERTcht"&amp;gt;&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;search id="BaseSearch1" ref="ALERTcht"&amp;gt;
    &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;&amp;lt;$field1.latest$&amp;lt;/latest&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2016 17:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216133#M13481</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-28T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216134#M13482</link>
      <description>&lt;P&gt;Thanks - &lt;/P&gt;

&lt;P&gt;Good news: is it makes the panels refresh when i choose a time. &lt;/P&gt;

&lt;P&gt;Bad news: The charts still display the time defined in the 'Start time' and 'Finish time' under 'Time range' settings in the saved search form.   &lt;/P&gt;

&lt;P&gt;The underlying query in the saved search does &lt;STRONG&gt;not&lt;/STRONG&gt; have earliest=-1h@h latest=now &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset submitButton="false"&amp;gt;

    &amp;lt;input type="text" token="FindHost" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;HOST FILTER&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;


    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;Timerange Under Development&amp;lt;/label&amp;gt;
    &amp;lt;/input&amp;gt;    
  &amp;lt;/fieldset&amp;gt;  


  &amp;lt;search id="BaseSearch1" ref="ALERTcht"&amp;gt;
     &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;  
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2016 18:15:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216134#M13482</guid>
      <dc:creator>subtrakt</dc:creator>
      <dc:date>2016-09-28T18:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216135#M13483</link>
      <description>&lt;P&gt;Ok.. Lets try another option. Update your base search with this now.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;search id="BaseSearch1" &amp;gt;
&amp;lt;query&amp;gt;| savedsearch  ALERTcht &amp;lt;/query&amp;gt;
     &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;&amp;lt;$field1.latest$&amp;lt;/latest&amp;gt;
 &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2016 18:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216135#M13483</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-28T18:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216136#M13484</link>
      <description>&lt;P&gt;That works, however the default savedsearch is "waiting for input" until timerange is selected.  Its no longer instantly loading the savedsearch history. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;input type="time" token="field1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;search id="BaseSearch1" ref="ALERTcht"&amp;gt;
    &amp;lt;query&amp;gt;| savedsearch ALERTcht&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2016 19:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216136#M13484</guid>
      <dc:creator>subtrakt</dc:creator>
      <dc:date>2016-09-28T19:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216137#M13485</link>
      <description>&lt;P&gt;standby, it might be working properly.  testing.  &lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 19:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216137#M13485</guid>
      <dc:creator>subtrakt</dc:creator>
      <dc:date>2016-09-28T19:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216138#M13486</link>
      <description>&lt;P&gt;I don't think its using the scheduled search history - I'll live with it for now. &lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 20:39:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216138#M13486</guid>
      <dc:creator>subtrakt</dc:creator>
      <dc:date>2016-09-28T20:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216139#M13487</link>
      <description>&lt;P&gt;It won't. ALso, if you're looking for flexibility to change the time range, the historical run wouldn't be useful anyways.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 20:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216139#M13487</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-28T20:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Override basesearch saved search with timerange token and convert to inline</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216140#M13488</link>
      <description>&lt;P&gt;Understood... &lt;/P&gt;

&lt;P&gt;The idea would be to have the dashboard refresh every 5 minutes in monitor mode by using the scheduled search history.  And if a user changes the timerange selector it goes into inline mode.  &lt;/P&gt;

&lt;P&gt;I guess I could have two dashboards, one for monitoring and one for historical research..  &lt;/P&gt;

&lt;P&gt;Either way, appreciate your help. &lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 21:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Override-basesearch-saved-search-with-timerange-token-and/m-p/216140#M13488</guid>
      <dc:creator>subtrakt</dc:creator>
      <dc:date>2016-09-28T21:24:33Z</dc:date>
    </item>
  </channel>
</rss>

