<?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 How do I set the default time range for the search bar of the search app's summary view? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-the-default-time-range-for-the-search-bar-of-the/m-p/11537#M113</link>
    <description>&lt;P&gt;I want to change my default time range to search the last 15 minutes instead of all time.  How could I go about doing this?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2010 05:39:31 GMT</pubDate>
    <dc:creator>Simeon</dc:creator>
    <dc:date>2010-04-15T05:39:31Z</dc:date>
    <item>
      <title>How do I set the default time range for the search bar of the search app's summary view?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-the-default-time-range-for-the-search-bar-of-the/m-p/11537#M113</link>
      <description>&lt;P&gt;I want to change my default time range to search the last 15 minutes instead of all time.  How could I go about doing this?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 05:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-the-default-time-range-for-the-search-bar-of-the/m-p/11537#M113</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-04-15T05:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the default time range for the search bar of the search app's summary view?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-the-default-time-range-for-the-search-bar-of-the/m-p/11538#M114</link>
      <description>&lt;P&gt;To change the default setting for the Search app, you must edit the TimeRangePicker module within its respective view.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/AdvancedDev/ModuleReference" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/AdvancedDev/ModuleReference&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To edit this, log in to Splunk and navigate to manager &amp;gt; views &amp;gt; charting.  This should take you directly to a window where you can make direct xml edits.  You will need to change the TimeRangePicker selected parameter to match one that is used in the times.conf file.  The specific lines are:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;module name="TimeRangePicker"&amp;gt;
      &amp;lt;param name="selected"&amp;gt;All time&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You may only populate the parameter with valid "label" values.  Values can be found in the $SPLUNK_HOME/etc/system/default/times.conf file.   So, if I wanted to use the last 15 mins as my default, I would make the following change to the selected parameter (case sensitive):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;module name="TimeRangePicker"&amp;gt;
      &amp;lt;param name="selected"&amp;gt;Last 15 minutes&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be aware that you should also change this for the charting view.  So, after saving the previous change you should navigate to charting.&lt;/P&gt;

&lt;P&gt;If you wanted to do this via CLI, you could manually recreate these files and place them in a local directory under the search app.  The default files for the views are physically located here:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/apps/search/default/data/ui/views&lt;/P&gt;

&lt;P&gt;The files that need to be edited are flashtimeline.xml and charting.xml. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 05:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-the-default-time-range-for-the-search-bar-of-the/m-p/11538#M114</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-04-15T05:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the default time range for the search bar of the search app's summary view?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-the-default-time-range-for-the-search-bar-of-the/m-p/11539#M115</link>
      <description>&lt;P&gt;This has changed in version 6 of splunk. You can now do this in ui-prefs.conf&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Search/Selecttimerangestoapply#Change_the_default_selected_time_range" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.1/Search/Selecttimerangestoapply#Change_the_default_selected_time_range&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-the-default-time-range-for-the-search-bar-of-the/m-p/11539#M115</guid>
      <dc:creator>bmunson_splunk</dc:creator>
      <dc:date>2020-09-28T16:40:03Z</dc:date>
    </item>
  </channel>
</rss>

