<?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: Maximum value for &amp;quot;latest&amp;quot; time modifier in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640905#M222060</link>
    <description>&lt;P&gt;Thank's!&lt;/P&gt;&lt;P&gt;This seems to be something new and also docs&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Search/Specifytimemodifiersinyoursearch#Examples_of_relative_time_modifiers" target="_blank"&gt;Examples of relative time modifiers&lt;/A&gt;&amp;nbsp;didn't know that. They are told the old way which&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;already told.&lt;/P&gt;&lt;P&gt;You should leave comments on that documentation that this behaviour has changes and is different what are in docs! Fortunately doc team is eager to update documentation when someone found errors or not enough clearly explained issues.&lt;/P&gt;&lt;P&gt;I also test this on Splunk 9.0.4.1and 9.0.3 on macOS and it works just like you describe.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 19:22:31 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2023-04-20T19:22:31Z</dc:date>
    <item>
      <title>How to achieve maximum value for "latest" time modifier?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640877#M222042</link>
      <description>&lt;P&gt;Dear fellow Splunkthusiasts!&lt;/P&gt;
&lt;P&gt;I have found out one of old scheduled searches in my installation is failing with this error message:&lt;/P&gt;
&lt;PRE&gt;Invalid value "+18y@y" for time term 'latest'&lt;/PRE&gt;
&lt;P&gt;Looking closer, it turned out the search fails with any value beyond&amp;nbsp; latest=01/19/2038:04:14:07 . I have noticed this value as expiration date for perpetual licenses as well.&lt;/P&gt;
&lt;P&gt;I understand this is the maximum time that could be represented by four-byte signed integer as a number of seconds since 1970-01-01 00:00:00.&lt;/P&gt;
&lt;P&gt;My question is: how do I specify - using time modifiers in SPL - that my time range includes future with no upper limit? I don't want to hard-code the above-mentioned time into my search, as that limit may (and surely will) change in the future, not to mention it is not very self-explanatory.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 18:53:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640877#M222042</guid>
      <dc:creator>eregon</dc:creator>
      <dc:date>2023-04-21T18:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value for "latest" time modifier</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640881#M222045</link>
      <description>&lt;P&gt;For some answers all you need to do is ask - then you realize yourself.&lt;/P&gt;&lt;P&gt;The answer to my question is: to search for any future events with no upper limit, just omit the latest=&amp;lt;...&amp;gt; time modifier (use only earliest=&amp;lt;...&amp;gt;) in your search.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 17:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640881#M222045</guid>
      <dc:creator>eregon</dc:creator>
      <dc:date>2023-04-20T17:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value for "latest" time modifier</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640886#M222048</link>
      <description>&lt;P&gt;I suggest hardcoding the upper limit.&amp;nbsp; It's a well-known value among Linux aficionados.&amp;nbsp; For the uninitiated, include a ```comment explaining why the value is what it is```.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 17:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640886#M222048</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-20T17:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value for "latest" time modifier</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640887#M222049</link>
      <description>&lt;P&gt;Omitting &lt;FONT face="courier new,courier"&gt;latest&lt;/FONT&gt; is equivalent to specifying &lt;FONT face="courier new,courier"&gt;now&lt;/FONT&gt;.&amp;nbsp; It does not search events with dates in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 18:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640887#M222049</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-20T18:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value for "latest" time modifier</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640895#M222054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; , thanks for fast responses!&lt;/P&gt;&lt;P&gt;Actually, I have tried omitting the latest value and Splunk shows me something else. As a run-everywhere example, I run the following SPL:&lt;/P&gt;&lt;PRE&gt;| tstats count where index=_internal&lt;/PRE&gt;&lt;P&gt;The line below the SPL edit box shows:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;XXX&lt;/SPAN&gt; events&lt;/SPAN&gt; (4/19/23 8:00:00.000 PM to 4/20/23 8:12:11.000 PM)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;(which corresponds to time picker being set to "Last 24 hours")&lt;/P&gt;&lt;P&gt;Now I change the SPL by adding earliest, omitting latest (leaving time picker untouched):&lt;/P&gt;&lt;PRE&gt;| tstats count where index=_internal earliest=-h@h&lt;/PRE&gt;&lt;P&gt;The status line now shows:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;XXX&lt;SPAN class=""&gt; events&lt;/SPAN&gt; (4/20/23 7:00:00.000 PM to &lt;STRONG&gt;1/19/38 4:14:07.000 AM)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Also, my original (site specific) SPL actually returns the future events. Is it possible this behavior has changed in recent versions of Splunk? (I am on 9.0.4)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 18:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640895#M222054</guid>
      <dc:creator>eregon</dc:creator>
      <dc:date>2023-04-20T18:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value for "latest" time modifier</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640905#M222060</link>
      <description>&lt;P&gt;Thank's!&lt;/P&gt;&lt;P&gt;This seems to be something new and also docs&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Search/Specifytimemodifiersinyoursearch#Examples_of_relative_time_modifiers" target="_blank"&gt;Examples of relative time modifiers&lt;/A&gt;&amp;nbsp;didn't know that. They are told the old way which&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;already told.&lt;/P&gt;&lt;P&gt;You should leave comments on that documentation that this behaviour has changes and is different what are in docs! Fortunately doc team is eager to update documentation when someone found errors or not enough clearly explained issues.&lt;/P&gt;&lt;P&gt;I also test this on Splunk 9.0.4.1and 9.0.3 on macOS and it works just like you describe.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 19:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640905#M222060</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-04-20T19:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value for "latest" time modifier</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640924#M222072</link>
      <description>&lt;P&gt;I would hardcode it as "2147483647" which is maxint for time_t in Splunk.&amp;nbsp; By the time it makes a difference, you won't be around.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 23:12:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/640924#M222072</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-20T23:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value for "latest" time modifier</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/641004#M222092</link>
      <description>&lt;P&gt;Hello from the Splunk Docs team!&lt;BR /&gt;Several people have reported this issue based on this thread.&lt;/P&gt;&lt;P&gt;We are looking into it and will updated this thread and the docs when we have more information.&lt;/P&gt;&lt;P&gt;Thanks for sending us the feedback!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 16:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-maximum-value-for-quot-latest-quot-time-modifier/m-p/641004#M222092</guid>
      <dc:creator>lstewart_splunk</dc:creator>
      <dc:date>2023-04-21T16:32:40Z</dc:date>
    </item>
  </channel>
</rss>

