<?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: What is the difference between min() max() and earliest() latest() for _time manipulations? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616368#M214221</link>
    <description>&lt;P&gt;Whereas there is no numeric difference, I am also curious as to which one is faster. &amp;nbsp;I usually go with min/max with the following reasoning:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;min/max are purely mathematical after all values become available.&lt;/LI&gt;&lt;LI&gt;earliest(_time)/latest(_time), on the other hand, require two operations, one to compare time stamps on events, one to return value of _time.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The second argument, of course, is flawed. &amp;nbsp;It should depend on implementation of index and search. &amp;nbsp;Any Splunk insider to shed light on this?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 19:30:31 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2022-10-07T19:30:31Z</dc:date>
    <item>
      <title>What is the difference between min() max() and earliest() latest() for _time manipulations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616356#M214215</link>
      <description>&lt;P&gt;If i only want to use the field "_time" of a log to get first and latest occurrence of an event, which commands should i use and why ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;ex:&lt;BR /&gt;...&lt;BR /&gt;| stats earliest(_time) as firsttime latest(_time) as lasttime&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;or&lt;BR /&gt;...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| stats min(_time) as firsttime max(_time) as lasttime&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a case where i could get differents results ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 17:21:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616356#M214215</guid>
      <dc:creator>edefIo1937</dc:creator>
      <dc:date>2022-10-07T17:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between min() max() and earliest() latest() for _time manipulations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616359#M214216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250171"&gt;@edefIo1937&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;_time is a timestamp in epochtime format, in other words a progressive number, so it's the same thing.&lt;/P&gt;&lt;P&gt;I usually use earliest and latest.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 17:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616359#M214216</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-07T17:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between min() max() and earliest() latest() for _time manipulations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616368#M214221</link>
      <description>&lt;P&gt;Whereas there is no numeric difference, I am also curious as to which one is faster. &amp;nbsp;I usually go with min/max with the following reasoning:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;min/max are purely mathematical after all values become available.&lt;/LI&gt;&lt;LI&gt;earliest(_time)/latest(_time), on the other hand, require two operations, one to compare time stamps on events, one to return value of _time.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The second argument, of course, is flawed. &amp;nbsp;It should depend on implementation of index and search. &amp;nbsp;Any Splunk insider to shed light on this?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 19:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616368#M214221</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-10-07T19:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between min() max() and earliest() latest() for _time manipulations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616609#M214306</link>
      <description>&lt;P&gt;what does Splunk recommend ?&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Oct 2022 07:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616609#M214306</guid>
      <dc:creator>jordan_art</dc:creator>
      <dc:date>2022-10-11T07:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between min() max() and earliest() latest() for _time manipulations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616610#M214307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250221"&gt;@jordan_art&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;there isn't a best practice, you can use both of them with the same results.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 07:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-min-max-and-earliest-latest-for/m-p/616610#M214307</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-11T07:28:17Z</dc:date>
    </item>
  </channel>
</rss>

