<?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 offset the token from a time picker in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671142#M54940</link>
    <description>&lt;P&gt;When does it not work? For my intends and purposes it is sufficient! Thank you alot!&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 10:28:52 GMT</pubDate>
    <dc:creator>duesser</dc:creator>
    <dc:date>2023-12-07T10:28:52Z</dc:date>
    <item>
      <title>How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670774#M54894</link>
      <description>&lt;P&gt;I basically have the exact same question as&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-a-panel-use-an-offset-from-a-time-picker/m-p/351003" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-a-panel-use-an-offset-from-a-time-picker/m-p/351003&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT I need to actually change the value in the timerange picker token. E.G. if i select a timerange of "last 4 hour" and my modification is to add an hour, than the $token_time.earliest$ should not be&amp;nbsp; "-4h" but "-5h".&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 09:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670774#M54894</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2023-12-05T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670807#M54896</link>
      <description>&lt;P&gt;Create a new token in the change handler for the timepicker which is based on an hour difference to the timepicker earliest value. If you start changing the timepicker itself, this will be seen as a&amp;nbsp; change which will then add another hour, which will be seen as a change, and so on.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670807#M54896</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-05T12:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670830#M54901</link>
      <description>&lt;P&gt;Also - you can "stack up" time specifiers. Look at this example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PickleRick_0-1701784270714.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28379i8A1F4EC257DDA1BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PickleRick_0-1701784270714.png" alt="PickleRick_0-1701784270714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 13:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670830#M54901</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-12-05T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670931#M54909</link>
      <description>&lt;P&gt;I am aware of this, however I was not able to accomplish this. Could you specify HOW EXACTLY you would accomplish this - e.g. shift earliest to earliest-1h within the input part of XML?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 06:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670931#M54909</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2023-12-06T06:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670932#M54910</link>
      <description>&lt;P&gt;I am aware of this, which is why I linked the question where this was answered already. I need to change the token within the XML dashboard.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 06:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670932#M54910</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2023-12-06T06:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670951#M54914</link>
      <description>&lt;P&gt;But why exactly do you want to change the token itself? Isn't it enough to skew the timerange for the resulting search?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670951#M54914</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-12-06T08:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670953#M54915</link>
      <description>&lt;P&gt;I am loading the search from a datamodel, so I can not do&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| datamodel earliest=$&amp;lt;time_token&amp;gt;$-1h&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670953#M54915</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2023-12-06T08:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670959#M54917</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;change&amp;gt;
  &amp;lt;eval token="starttime"&amp;gt;relative_time($timepicker.earliest$","-1h")&amp;lt;/eval&amp;gt;
  &amp;lt;eval token="finishtime"&amp;gt;relative_time($timepicker.latest$","-1h")&amp;lt;/eval&amp;gt;
&amp;lt;/change&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/670959#M54917</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-06T08:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671140#M54938</link>
      <description>&lt;P&gt;This does not work for me. It evaluates to "NaN". I guess the issue beeing, that $timepicker.xxx$ is filled with "-24h@h" for example, rather than UNIX time.&amp;nbsp; Maybe it would make sense to post this as a seperate question. "how to convert &lt;A href="mailto:-2d@d" target="_blank"&gt;"-24h@h"&amp;nbsp;&lt;/A&gt;or so into UNIX time"?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 10:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671140#M54938</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2023-12-07T10:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671141#M54939</link>
      <description>&lt;P&gt;Try this - although this doesn't work with all options from time pickers - I haven't found an easy way to deal with all options.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;change&amp;gt;
  &amp;lt;eval token="starttime"&amp;gt;relative_time(relative_time(now(),$timepicker.earliest$),"-1h")&amp;lt;/eval&amp;gt;
  &amp;lt;eval token="finishtime"&amp;gt;relative_time(relative_time(now(),$timepicker.latest$),"-1h")&amp;lt;/eval&amp;gt;
&amp;lt;/change&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Dec 2023 10:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671141#M54939</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-07T10:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671142#M54940</link>
      <description>&lt;P&gt;When does it not work? For my intends and purposes it is sufficient! Thank you alot!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 10:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671142#M54940</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2023-12-07T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671148#M54942</link>
      <description>&lt;P&gt;iirc it is when you use "last hour" (for example) as the latest become the string "now" which confuses relative_time although it might also be when you use advanced as you can get an epoch time.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 11:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/671148#M54942</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-07T11:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to offset the token from a time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/746688#M58737</link>
      <description>&lt;P class="lia-align-right"&gt;&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 17:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-offset-the-token-from-a-time-picker/m-p/746688#M58737</guid>
      <dc:creator>la_yaki</dc:creator>
      <dc:date>2025-05-21T17:31:09Z</dc:date>
    </item>
  </channel>
</rss>

