<?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: How to change the latest for the TimeRangePicker ? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226245#M14024</link>
    <description>&lt;P&gt;I tried it... but it doesn't work the way I want it.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2016 02:58:04 GMT</pubDate>
    <dc:creator>ID_SplunkUser</dc:creator>
    <dc:date>2016-08-15T02:58:04Z</dc:date>
    <item>
      <title>How to change the latest for the TimeRangePicker ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226240#M14019</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm using Time Range Picker in my dashboard. Whenever I select any particular time range, I want to increase the latest with 1 day.&lt;BR /&gt;
i.e if selected latest is 10 Aug, then it should take it 11 Aug in the latest.&lt;BR /&gt;
Earliest will be same.&lt;BR /&gt;
Code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" searchWhenChanged="true" token="TIMEPICKER"&amp;gt;
      &amp;lt;label&amp;gt;Date&amp;lt;/label&amp;gt;

      &amp;lt;change&amp;gt;
         &amp;lt;set token="STARTDATEEPOCH"&amp;gt;$earliest$&amp;lt;/set&amp;gt;
        &amp;lt;set token="ENDDATEEPOCH"&amp;gt;$latest$&amp;lt;/set&amp;gt;
      &amp;lt;/change&amp;gt;

    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I'm using the Time Range Picker selection as time range for Base query. I want the time range for Base query should be  earliest &amp;amp; (latest+1day)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search id="base"&amp;gt;
    &amp;lt;query&amp;gt;index=hvpayments sourcetype=pq | eventstats count(ID) as Count by ID&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$STARTDATEEPOCH$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$ENDDATEEPOCH$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Aug 2016 05:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226240#M14019</guid>
      <dc:creator>ID_SplunkUser</dc:creator>
      <dc:date>2016-08-11T05:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the latest for the TimeRangePicker ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226241#M14020</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;You can achieve this by tweaking the required time range stanza in the times.conf file, which locates in etc/system/default.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Faizan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 06:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226241#M14020</guid>
      <dc:creator>faizancool85</dc:creator>
      <dc:date>2016-08-11T06:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the latest for the TimeRangePicker ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226242#M14021</link>
      <description>&lt;P&gt;Thanks for replying. But I don't want to change any configuration file. Is it possible to change within the Dashboard XML ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 06:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226242#M14021</guid>
      <dc:creator>ID_SplunkUser</dc:creator>
      <dc:date>2016-08-11T06:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the latest for the TimeRangePicker ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226243#M14022</link>
      <description>&lt;P&gt;Could you pls share the portion of XML so that can be tweaked?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 08:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226243#M14022</guid>
      <dc:creator>rajeev_ku</dc:creator>
      <dc:date>2016-08-11T08:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the latest for the TimeRangePicker ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226244#M14023</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz latest=[|gentimes start=-1 | eval search=relative_time(now(), "$timepicker.latest$")+86400 | fields search ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Aug 2016 13:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226244#M14023</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-11T13:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the latest for the TimeRangePicker ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226245#M14024</link>
      <description>&lt;P&gt;I tried it... but it doesn't work the way I want it.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 02:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226245#M14024</guid>
      <dc:creator>ID_SplunkUser</dc:creator>
      <dc:date>2016-08-15T02:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the latest for the TimeRangePicker ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226246#M14025</link>
      <description>&lt;P&gt;I changed my question, and updated with the code. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 03:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-latest-for-the-TimeRangePicker/m-p/226246#M14025</guid>
      <dc:creator>ID_SplunkUser</dc:creator>
      <dc:date>2016-08-15T03:04:38Z</dc:date>
    </item>
  </channel>
</rss>

