<?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 Change default time range based on current time in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541405#M37103</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I need to have the default time range for a dashboard cover an overnight shift. This necessitates the time range change depending upon when the page is loaded:&lt;/P&gt;&lt;TABLE border="1" width="56.25%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Time user loads page&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Time&amp;nbsp; range&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Description&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="47px"&gt;00:00 - 17:59&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;@d-1d+18h&amp;nbsp; to&amp;nbsp; @d+6&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;18:00 yesterday to 06:00 today&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="47px"&gt;18:00 - 23:59&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;@d+18h&amp;nbsp; to&amp;nbsp;&amp;nbsp;@d+1d+6h&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;18:00 today to 06:00 tomorrow&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a few hours of searching the forums I haven't seen another example where this is done, and I can't for the life of me figure out how to do it. Any help or just a nudge in the right direction would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 19:31:14 GMT</pubDate>
    <dc:creator>jlew715</dc:creator>
    <dc:date>2021-02-25T19:31:14Z</dc:date>
    <item>
      <title>Change default time range based on current time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541405#M37103</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I need to have the default time range for a dashboard cover an overnight shift. This necessitates the time range change depending upon when the page is loaded:&lt;/P&gt;&lt;TABLE border="1" width="56.25%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Time user loads page&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Time&amp;nbsp; range&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Description&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="47px"&gt;00:00 - 17:59&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;@d-1d+18h&amp;nbsp; to&amp;nbsp; @d+6&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;18:00 yesterday to 06:00 today&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="47px"&gt;18:00 - 23:59&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;@d+18h&amp;nbsp; to&amp;nbsp;&amp;nbsp;@d+1d+6h&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;18:00 today to 06:00 tomorrow&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a few hours of searching the forums I haven't seen another example where this is done, and I can't for the life of me figure out how to do it. Any help or just a nudge in the right direction would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 19:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541405#M37103</guid>
      <dc:creator>jlew715</dc:creator>
      <dc:date>2021-02-25T19:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change default time range based on current time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541406#M37104</link>
      <description>&lt;P&gt;&lt;A href="mailto:-1d@d+18h" target="_blank"&gt;-1d@d+18h&lt;/A&gt;&amp;nbsp;to&amp;nbsp;@d+6h&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;@d+18h&amp;nbsp; to&amp;nbsp; +1d@d+6h&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 19:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541406#M37104</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-25T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change default time range based on current time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541410#M37105</link>
      <description>&lt;P&gt;Ok, I can confirm those are the two ranges I need.&lt;/P&gt;&lt;P data-unlink="true"&gt;How / where do I specify those as the default? Where do I put the logic to say "IF the local time is after 18:00 but before 23:59, use&amp;nbsp;@d+18h&amp;nbsp; to&amp;nbsp; +1d@d+6h&amp;nbsp;ELSE IF the local time is after 00:00 but before 17:59, use&amp;nbsp; -1d@d+18h&amp;nbsp;&lt;SPAN&gt;to&amp;nbsp;@d+6h&lt;/SPAN&gt;"?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 19:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541410#M37105</guid>
      <dc:creator>jlew715</dc:creator>
      <dc:date>2021-02-25T19:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change default time range based on current time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541413#M37107</link>
      <description>&lt;P&gt;Will this work&lt;/P&gt;&lt;P&gt;Earliest =&amp;nbsp;&lt;A href="mailto:+6h@d-6h" target="_blank"&gt;+6h@d-6h&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Latest =&amp;nbsp;&lt;A href="mailto:+6h@d+6h" target="_blank"&gt;+6h@d+6h&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 19:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-default-time-range-based-on-current-time/m-p/541413#M37107</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-25T19:58:18Z</dc:date>
    </item>
  </channel>
</rss>

