<?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: Time token returning NAN error in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685454#M233879</link>
    <description>&lt;P&gt;I've already given all the details &amp;amp; mentioned earlier that I used your method.&amp;nbsp; To be specific, I used this below mentioned statement in the "timedrop" dropdown change section.&lt;BR /&gt;But still getting Nan error&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;panel id="pqr"&amp;gt;
&amp;lt;input type="time" token="time"&amp;gt;
&amp;lt;label&amp;gt;DateTime&amp;lt;/label&amp;gt;
&amp;lt;default&amp;gt;
&amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/panel&amp;gt;

&amp;lt;panel id="abc"&amp;gt;
&amp;lt;input type="dropdown" token="timedrop"&amp;gt;
&amp;lt;label&amp;gt;Time Dropdown&amp;lt;/label&amp;gt;
&amp;lt;choice value="now"&amp;gt;Now&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+3d"&amp;gt;3d&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+4d"&amp;gt;4d&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+5d"&amp;gt;5d&amp;lt;/choice&amp;gt;
&amp;lt;default&amp;gt;now&amp;lt;/default&amp;gt;
&amp;lt;change&amp;gt;
&amp;lt;eval token="latest_Time"&amp;gt;if(isnull('timedrop') or 'timedrop'="now",now(),relative_time(if($time.latest$="now",now(),$time.latest$), $timedrop$))&amp;lt;/eval&amp;gt;&amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 25 Apr 2024 11:46:14 GMT</pubDate>
    <dc:creator>av_</dc:creator>
    <dc:date>2024-04-25T11:46:14Z</dc:date>
    <item>
      <title>Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685411#M233865</link>
      <description>&lt;P&gt;I have a time picker &amp;amp; a time dropdown which has static values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;panel id="pqr"&amp;gt;
&amp;lt;input type="time" token="time"&amp;gt;
&amp;lt;label&amp;gt;DateTime&amp;lt;/label&amp;gt;
&amp;lt;default&amp;gt;
&amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/panel&amp;gt;

&amp;lt;panel id="abc"&amp;gt;
&amp;lt;input type="dropdown" token="timedrop"&amp;gt;
&amp;lt;label&amp;gt;Time Dropdown&amp;lt;/label&amp;gt;
&amp;lt;choice value="now"&amp;gt;Now&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+3d"&amp;gt;3d&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+4d"&amp;gt;4d&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+5d"&amp;gt;5d&amp;lt;/choice&amp;gt;
&amp;lt;default&amp;gt;now&amp;lt;/default&amp;gt;
&amp;lt;change&amp;gt;
&amp;lt;eval token="latest_Time"&amp;gt;if('timedrop'="now",now(),relative_time(if($time.latest$="now",now(),$time.latest$), $timedrop$))&amp;lt;/eval&amp;gt;
&amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The expectation is if Now is selected in timedrop, the data till now should load. If +3d is selected in timedrop, then +3d should be added with the time.latest token (coming from the time picker) and so on.&lt;BR /&gt;On load (by default Today is selected), the latest_Time is returning NAN, but if I select a specific time range (say 8th April 10AM-11AM) &amp;amp; timedrop as 3d, it is working as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 09:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685411#M233865</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-05-13T09:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685429#M233867</link>
      <description>&lt;P&gt;Try like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel id="pqr"&amp;gt;
      &amp;lt;input type="time" token="time"&amp;gt;
        &amp;lt;label&amp;gt;DateTime&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;
          &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel id="abc"&amp;gt;
      &amp;lt;title&amp;gt;Latest time token $latest_Time$&amp;lt;/title&amp;gt;
      &amp;lt;input type="dropdown" token="timedrop"&amp;gt;
        &amp;lt;label&amp;gt;Time Dropdown&amp;lt;/label&amp;gt;
        &amp;lt;choice value="now"&amp;gt;Now&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="+3d"&amp;gt;3d&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="+4d"&amp;gt;4d&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="+5d"&amp;gt;5d&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;now&amp;lt;/default&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;eval token="latest_Time"&amp;gt;if(isnull('timedrop') or 'timedrop'="now",now(),relative_time(if($time.latest$="now",now(),$time.latest$), $timedrop$))&amp;lt;/eval&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;There doesn't seem to be a way to set an initial value on a time input - perhaps this is a bug?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 09:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685429#M233867</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-25T09:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685449#M233875</link>
      <description>&lt;P&gt;Tried this method but for some reason I still see the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="av__0-1714043422536.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30561i632AC192BC27200B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="av__0-1714043422536.png" alt="av__0-1714043422536.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685449#M233875</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-04-25T11:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685453#M233878</link>
      <description>&lt;P&gt;All you have shown is a screen grab of something that isn't working without any detail of what you have actually tried i.e. the SimpleXML you are using in this instance. Please share some useful information.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685453#M233878</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-25T11:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685454#M233879</link>
      <description>&lt;P&gt;I've already given all the details &amp;amp; mentioned earlier that I used your method.&amp;nbsp; To be specific, I used this below mentioned statement in the "timedrop" dropdown change section.&lt;BR /&gt;But still getting Nan error&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;panel id="pqr"&amp;gt;
&amp;lt;input type="time" token="time"&amp;gt;
&amp;lt;label&amp;gt;DateTime&amp;lt;/label&amp;gt;
&amp;lt;default&amp;gt;
&amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/panel&amp;gt;

&amp;lt;panel id="abc"&amp;gt;
&amp;lt;input type="dropdown" token="timedrop"&amp;gt;
&amp;lt;label&amp;gt;Time Dropdown&amp;lt;/label&amp;gt;
&amp;lt;choice value="now"&amp;gt;Now&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+3d"&amp;gt;3d&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+4d"&amp;gt;4d&amp;lt;/choice&amp;gt;
&amp;lt;choice value="+5d"&amp;gt;5d&amp;lt;/choice&amp;gt;
&amp;lt;default&amp;gt;now&amp;lt;/default&amp;gt;
&amp;lt;change&amp;gt;
&amp;lt;eval token="latest_Time"&amp;gt;if(isnull('timedrop') or 'timedrop'="now",now(),relative_time(if($time.latest$="now",now(),$time.latest$), $timedrop$))&amp;lt;/eval&amp;gt;&amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685454#M233879</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-04-25T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685458#M233882</link>
      <description>&lt;P&gt;Except that the screen grab you showed is not from this SimpleXML code&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1714046382573.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30562i19302B575140ADAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1714046382573.png" alt="ITWhisperer_0-1714046382573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/685458#M233882</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-25T11:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687002#M234309</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I've removed the option Now from the dropdown, what should be the new eval statement instead of&lt;/P&gt;&lt;PRE&gt;&amp;lt;eval token="latest_Time"&amp;gt;if(isnull('timedrop') or 'timedrop'="now",now(),relative_time(if($time.latest$="now",now(),$time.latest$), $timedrop$))&amp;lt;/eval&amp;gt;&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 10:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687002#M234309</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-05-09T10:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687042#M234326</link>
      <description>&lt;P&gt;If now is no longer an option, there should be no reason to check for it!&lt;/P&gt;&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="latest_Time"&amp;gt;relative_time($time.latest$, $timedrop$)&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Don't forget to change the default for the dropdown to something other than now&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 13:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687042#M234326</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-09T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687295#M234424</link>
      <description>&lt;P&gt;The statement is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="av__0-1715587205616.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30783i3E0AB615037137F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="av__0-1715587205616.png" alt="av__0-1715587205616.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the above selection made, the earliest time should be 5/8/2024 05:00:00 &amp;amp; latest time should be 5/9/2024 06:00:00 (because the time span selected is +1d) but it is not working despite of using the below eval statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;eval token="latest_Time"&amp;gt;relative_time($time.latest$, $timedrop$)&amp;lt;/eval&amp;gt;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="av__1-1715587458465.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30784i5D7068C6C032B93F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="av__1-1715587458465.png" alt="av__1-1715587458465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 08:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687295#M234424</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-05-13T08:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687296#M234425</link>
      <description>&lt;P&gt;Please share the source of your dashboard, just sharing screengrabs does not show what is going on behind the scenes!&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 08:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687296#M234425</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-13T08:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687300#M234426</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;My dashboard&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
 
  &amp;lt;row id="mainFilterRow" depends="$showHidePanel$"&amp;gt;
    &amp;lt;panel id="mainFilterPanel1"&amp;gt;
      &amp;lt;input type="time" token="time"&amp;gt;
        &amp;lt;label&amp;gt;DateTime&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;
          &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;
   
    &amp;lt;panel id="mainFilterPanel21"&amp;gt;
      &amp;lt;input type="dropdown" token="TimeDrop"&amp;gt;
        &amp;lt;label&amp;gt;TimeDrop&amp;lt;/label&amp;gt;
        &amp;lt;choice value="+1d"&amp;gt;1d&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="+2d"&amp;gt;2d&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="+5d"&amp;gt;5d&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;1d&amp;lt;/default&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;eval token="latest_Time"&amp;gt;relative_time($time.latest$, $TimeDrop$)&amp;lt;/eval&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row id="chartRow" depends="$showHidePanel$"&amp;gt;
    &amp;lt;panel&amp;gt;
        &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=main
| stats count by host&amp;lt;/query&amp;gt;
         
          &amp;lt;earliest&amp;gt;$time.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$latest_Time$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 May 2024 09:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687300#M234426</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-05-13T09:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687308#M234431</link>
      <description>&lt;P&gt;Try adding an init block&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;init&amp;gt;
    &amp;lt;eval token="latest_Time"&amp;gt;relative_time(now(), "+1d")&amp;lt;/eval&amp;gt;
  &amp;lt;/init&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 May 2024 09:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/687308#M234431</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-13T09:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/688603#M234753</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; I below eval statement in init block didn't work.&lt;/P&gt;&lt;PRE&gt;  &amp;lt;init&amp;gt;
    &amp;lt;eval token="latest_Time"&amp;gt;relative_time(now(), "+1d")&amp;lt;/eval&amp;gt;
  &amp;lt;/init&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I am using Javascript and there I have created two variables for earliest &amp;amp; latest time.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; var&lt;/SPAN&gt; &lt;SPAN&gt;earliestTime&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;defaultTokens&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"time.earliest"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;latestTime&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;defaultTokens&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"time.latest"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Do I need to use these variables in the Splunk dashboard in order to get the desired results?&lt;BR /&gt;&lt;BR /&gt;Once again, the problem statement is that I have to add +1d to the latest time selected in the time token.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 May 2024 12:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/688603#M234753</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-05-24T12:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/688649#M234768</link>
      <description>&lt;P&gt;In what way didn't it work?&lt;/P&gt;&lt;P&gt;I am not using javascript and init blocks work for me!&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 21:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/688649#M234768</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-24T21:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Time token returning NAN error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/688692#M234778</link>
      <description>&lt;P&gt;Without using JavaScript, it works as expected but I need to use JavaScript.&amp;nbsp;&lt;BR /&gt;I’m just assuming that due to the earliest and latest variables defined in JavaScript, the init block is not working for me.&lt;/P&gt;&lt;P&gt;Is there a way to solve this issue?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 18:06:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-token-returning-NAN-error/m-p/688692#M234778</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-05-25T18:06:55Z</dc:date>
    </item>
  </channel>
</rss>

