<?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: Difference between last(X) and latest(X) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-last-X-and-latest-X/m-p/59067#M14557</link>
    <description>&lt;P&gt;You are right. Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2013 17:23:09 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2013-09-10T17:23:09Z</dc:date>
    <item>
      <title>Difference between last(X) and latest(X)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-last-X-and-latest-X/m-p/59065#M14555</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;What is the difference between last(X) and latest(X) functions for stats. I tried both in searches and i get same output. The difference is not quite clear in splunk documentation &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I would like to know the exact difference between these two functions.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Strive&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 15:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-last-X-and-latest-X/m-p/59065#M14555</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2013-09-10T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between last(X) and latest(X)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-last-X-and-latest-X/m-p/59066#M14556</link>
      <description>&lt;P&gt;You see the same output likely because you are looking at results in default time order.&lt;/P&gt;

&lt;P&gt;This search (for me, on the tutorial sample data) gives me four different values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="access_combined_wcookie" | sort time_taken | stats first(c_ip) latest(c_ip) last(c_ip) earliest(c_ip) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;first and last are by 'data order', earliest and latest are by 'time order'.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 15:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-last-X-and-latest-X/m-p/59066#M14556</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2013-09-10T15:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between last(X) and latest(X)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-last-X-and-latest-X/m-p/59067#M14557</link>
      <description>&lt;P&gt;You are right. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 17:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-last-X-and-latest-X/m-p/59067#M14557</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2013-09-10T17:23:09Z</dc:date>
    </item>
  </channel>
</rss>

