<?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 TimeRangePicker to have the default value as Custom time in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/TimeRangePicker-to-have-the-default-value-as-Custom-time/m-p/105059#M5945</link>
    <description>&lt;P&gt;I want to have a TimeRangePicker in a dashboard to have the default value as Custom time .&lt;BR /&gt;
I dont want the dashboard to display any data , first time the page loads up. Only after user has entered the time ranges by clicking Custom time, the dashboard should get refreshed.&lt;BR /&gt;
I tried this, In dashboard it shows up as Alltime and it tries to display the data upon loading the page.&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TimeRangePicker" layoutpanel="panel_row1_col1"&gt;&lt;BR /&gt;
  &lt;OBJECT&gt;&lt;PARAM name="default" /&gt;Custom time&lt;BR /&gt;
  &lt;PARAM name="searchWhenChanged" /&gt;True&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jul 2012 00:07:25 GMT</pubDate>
    <dc:creator>gpanicker</dc:creator>
    <dc:date>2012-07-21T00:07:25Z</dc:date>
    <item>
      <title>TimeRangePicker to have the default value as Custom time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TimeRangePicker-to-have-the-default-value-as-Custom-time/m-p/105059#M5945</link>
      <description>&lt;P&gt;I want to have a TimeRangePicker in a dashboard to have the default value as Custom time .&lt;BR /&gt;
I dont want the dashboard to display any data , first time the page loads up. Only after user has entered the time ranges by clicking Custom time, the dashboard should get refreshed.&lt;BR /&gt;
I tried this, In dashboard it shows up as Alltime and it tries to display the data upon loading the page.&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TimeRangePicker" layoutpanel="panel_row1_col1"&gt;&lt;BR /&gt;
  &lt;OBJECT&gt;&lt;PARAM name="default" /&gt;Custom time&lt;BR /&gt;
  &lt;PARAM name="searchWhenChanged" /&gt;True&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2012 00:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TimeRangePicker-to-have-the-default-value-as-Custom-time/m-p/105059#M5945</guid>
      <dc:creator>gpanicker</dc:creator>
      <dc:date>2012-07-21T00:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: TimeRangePicker to have the default value as Custom time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TimeRangePicker-to-have-the-default-value-as-Custom-time/m-p/105060#M5946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The TimeRangePicker module uses the times.conf file which is (unless customized) under the etc/system/local directory under your search head(s). You can only use values which are defined within that file and custom time isn't an actually defined element.&lt;/P&gt;

&lt;P&gt;I believe you can use a &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions?r=searchtip"&gt;workflow action&lt;/A&gt; to get around this but I think it would need a start and end field within each event to make it happen with the TimeRangePicker correctly; &lt;STRONG&gt;disclaimer:&lt;/STRONG&gt;  I've honestly never tried it out.&lt;/P&gt;

&lt;P&gt;The way I usually work around this is by using an extended search box to provide an earliest and latest window that I pass onto the search, the only downside is that they will have to type those values in which isn't the most user friendly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 14:28:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TimeRangePicker-to-have-the-default-value-as-Custom-time/m-p/105060#M5946</guid>
      <dc:creator>Kate_Lawrence-G</dc:creator>
      <dc:date>2012-07-24T14:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: TimeRangePicker to have the default value as Custom time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TimeRangePicker-to-have-the-default-value-as-Custom-time/m-p/105061#M5947</link>
      <description>&lt;P&gt;to prevent it from searching whent he page loads you will need to change the "searchWhenChanged" to False and add a submit button or someother method of starting the search&lt;/P&gt;

&lt;P&gt;something I do is:&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TimeRangePicker"&gt;&lt;BR /&gt;
          &lt;OBJECT&gt;&lt;PARAM name="searchWhenChanged" /&gt;False&lt;BR /&gt;
          &lt;PARAM name="selected" /&gt;Last 15 minutes&lt;BR /&gt;
          &lt;MODULE name="SubmitButton"&gt;&lt;BR /&gt;
            &lt;PARAM name="allowSoftSubmit" /&gt;True&lt;BR /&gt;
            &lt;PARAM name="label" /&gt;Search&lt;BR /&gt;
....&lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2012 19:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TimeRangePicker-to-have-the-default-value-as-Custom-time/m-p/105061#M5947</guid>
      <dc:creator>jguarini</dc:creator>
      <dc:date>2012-09-26T19:44:04Z</dc:date>
    </item>
  </channel>
</rss>

