<?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 to set the default search time in Splunk 6? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97373#M5321</link>
    <description>&lt;P&gt;How can I set the default search time in Splunk 6?  I'd prefer for my users to start their searches on the last 7 days instead of all time, but I can't find where to set it at.  I tried changing the value for TimeRangePicker in the flashtimeline view to "Last 7 days" then restarting Splunk, but the nothing changed in my view.  Below is the change I made:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; module name="TimeRangePicker"&amp;gt;
    &amp;lt; param name="selected"&amp;gt;Last 7 days&amp;lt; /param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I made this change to the following views:  flashtimeline, charting, dashboard, and dashboard_live.  What am I missing?  &lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2013 14:08:06 GMT</pubDate>
    <dc:creator>wpreston</dc:creator>
    <dc:date>2013-10-14T14:08:06Z</dc:date>
    <item>
      <title>How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97373#M5321</link>
      <description>&lt;P&gt;How can I set the default search time in Splunk 6?  I'd prefer for my users to start their searches on the last 7 days instead of all time, but I can't find where to set it at.  I tried changing the value for TimeRangePicker in the flashtimeline view to "Last 7 days" then restarting Splunk, but the nothing changed in my view.  Below is the change I made:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; module name="TimeRangePicker"&amp;gt;
    &amp;lt; param name="selected"&amp;gt;Last 7 days&amp;lt; /param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I made this change to the following views:  flashtimeline, charting, dashboard, and dashboard_live.  What am I missing?  &lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 14:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97373#M5321</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2013-10-14T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97374#M5322</link>
      <description>&lt;P&gt;+1 this problem.&lt;/P&gt;

&lt;P&gt;I tried: "flashtimeline"  / "dashboard_live" / "charting" and manually restarted the Splunk service. Still Nothing..... Any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2013 04:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97374#M5322</guid>
      <dc:creator>cam343</dc:creator>
      <dc:date>2013-10-21T04:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97375#M5323</link>
      <description>&lt;P&gt;For a workaround, you can enable flashtimeline. You can update the &lt;CODE&gt;&amp;lt;view&amp;gt;&lt;/CODE&gt; tag in flashtimeline.xml from&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;view onunloadCancelJobs="False" autoCancelInterval="100" isDashboard="False" type="redirect" target="search"&amp;gt;
&amp;lt;!-- autoCancelInterval is set here to 100 --&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;view onunloadCancelJobs="False" autoCancelInterval="100"&amp;gt;
&amp;lt;!-- autoCancelInterval is set here to 100 --&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then use use /app/search/flashtimeline instead of use /app/search/search&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 16:49:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97375#M5323</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2013-10-23T16:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97376#M5324</link>
      <description>&lt;P&gt;I have the work-around in place now and will be on the lookout for the future release. Thank you for the very detailed answers!!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 17:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97376#M5324</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2013-10-23T17:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97377#M5325</link>
      <description>&lt;P&gt;Further research yields this better answer:&lt;/P&gt;

&lt;P&gt;To do this in Splunk Enterprise 6.0, use ui-prefs.conf. If you set the value in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;, all your users should see it as the default setting. For example, if your &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/ui-prefs.conf&lt;/CODE&gt; file includes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search]
dispatch.earliest_time = @d
dispatch.latest_time = now
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The default time range that all users will see in the search app will be today.&lt;/P&gt;

&lt;P&gt;The configuration file reference for ui-prefs.conf is here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Ui-prefsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Ui-prefsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;We are updating the Search Manual to include this information.&lt;/P&gt;

&lt;P&gt;I am leaving the flashtimeline workaround information here in case it's useful to people for other reasons.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 17:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97377#M5325</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2013-10-24T17:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97378#M5326</link>
      <description>&lt;P&gt;Excellent, thank you ChrisG!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 00:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97378#M5326</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2013-10-25T00:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97379#M5327</link>
      <description>&lt;P&gt;Docs are updated: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Search/Selecttimerangestoapply#Change_the_default_selected_time_range"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Search/Selecttimerangestoapply#Change_the_default_selected_time_range&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 16:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97379#M5327</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2013-10-25T16:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97380#M5328</link>
      <description>&lt;P&gt;this did not work for me... does Splunk need to be restarted ?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 14:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97380#M5328</guid>
      <dc:creator>ruiaires</dc:creator>
      <dc:date>2013-12-02T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97381#M5329</link>
      <description>&lt;P&gt;Yes, this change will require a restart.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 15:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97381#M5329</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2013-12-02T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97382#M5330</link>
      <description>&lt;P&gt;@ChrisG, can you tell me how you selected the name of the stanza in your above example? The docs only mention the special &lt;CODE&gt;[default]&lt;/CODE&gt; stanza. Is it simply the name of the view?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 14:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97382#M5330</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2014-02-12T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97383#M5331</link>
      <description>&lt;P&gt;What I know is in the docs (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Search/Selecttimerangestoapply#Change_the_default_selected_time_range):"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Search/Selecttimerangestoapply#Change_the_default_selected_time_range):&lt;/A&gt; "the stanza name needs to match the dashboard ID for that view." If that's not working for you, let me know and I will investigate further.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 17:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97383#M5331</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2014-02-12T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97384#M5332</link>
      <description>&lt;P&gt;Keep in mind that the default homepage in Splunk 6.0.2 is actually the launcher app and not the search app, so configuring just the [search] stanza will not change the setting for the homepage.&lt;/P&gt;

&lt;P&gt;I was able to get it working in both the search app and the homepage by creating a&lt;BR /&gt;
$SPLUNK_HOME/etc/system/local/ui-prefs.conf containing these settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search]
dispatch.earliest_time = -24h
dispatch.latest_time = now

[default]
dispatch.earliest_time = -24h
dispatch.latest_time = now
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Apr 2014 23:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97384#M5332</guid>
      <dc:creator>mthierbel</dc:creator>
      <dc:date>2014-04-22T23:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97385#M5333</link>
      <description>&lt;P&gt;Thank you! This is a much better solution since everybody uses the launcher searchbox as you mention.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 17:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97385#M5333</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-05-06T17:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97386#M5334</link>
      <description>&lt;P&gt;Thanks, this is the info I needed to set the default for all users on both the Search and Home/Launcher pages!&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 21:48:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97386#M5334</guid>
      <dc:creator>dhathaway</dc:creator>
      <dc:date>2014-05-21T21:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97387#M5335</link>
      <description>&lt;P&gt;For my Splunk 6.2.0 server, specifying just the &lt;CODE&gt;[default]&lt;/CODE&gt; section is enough to specify the default search time for the Search app. I did not need two separate &lt;CODE&gt;[search]&lt;/CODE&gt; and &lt;CODE&gt;[default]&lt;/CODE&gt; sections. In addition, I used &lt;CODE&gt;@d&lt;/CODE&gt; like @ChristG instead of &lt;CODE&gt;-24h&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
dispatch.earliest_time = @d
dispatch.latest_time = now
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97387#M5335</guid>
      <dc:creator>stefanlasiewski</dc:creator>
      <dc:date>2014-12-01T21:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97388#M5336</link>
      <description>&lt;P&gt;And ironically, setting the &lt;CODE&gt;[default]&lt;/CODE&gt; section does not actually affect the default launcher app for me, but does affect certain other apps.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97388#M5336</guid>
      <dc:creator>stefanlasiewski</dc:creator>
      <dc:date>2014-12-01T21:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97389#M5337</link>
      <description>&lt;P&gt;@ChristG -- this only works for the Search app. The vast majority of Splunk users will start off on the default homepage, not the Splunk search app. How could we specify the default search time for all apps? In addition, @mthierbel's solution doesn't work for me either.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97389#M5337</guid>
      <dc:creator>stefanlasiewski</dc:creator>
      <dc:date>2014-12-01T21:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97390#M5338</link>
      <description>&lt;P&gt;@stefanlasiewski -- I'm surprised applying the setting under [default] is not working for you. Which directory is your ui-prefs.conf in? Are its settings taking effect for the [search] app screen?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97390#M5338</guid>
      <dc:creator>mthierbel</dc:creator>
      <dc:date>2014-12-01T21:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97391#M5339</link>
      <description>&lt;P&gt;I added the &lt;CODE&gt;[default]&lt;/CODE&gt; parameter to &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/ui-prefs.conf&lt;/CODE&gt; and restarted Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 01:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97391#M5339</guid>
      <dc:creator>stefanlasiewski</dc:creator>
      <dc:date>2014-12-02T01:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the default search time in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97392#M5340</link>
      <description>&lt;P&gt;What I am wondering is how can I make the time-frame "sticky"?    ie:  if the user specifies a timeframe from midnight 12/25/2014 to midnight 12/26/2014  then at all times in the future (until I pick something else) the timeframe will be showing me info for christmas 2014.&lt;/P&gt;

&lt;P&gt;Right now, it always switches back to the default....whereas I want it always to be what I specified previously.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 19:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-the-default-search-time-in-Splunk-6/m-p/97392#M5340</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2015-04-01T19:09:11Z</dc:date>
    </item>
  </channel>
</rss>

