<?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: mstats latest(_time) not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/mstats-latest-time-not-working/m-p/423739#M121605</link>
    <description>&lt;P&gt;You can get latest(_time), the screenshot you shared shows latest(time) as column name. It should be latest(_time) unless you are renaming _time to time &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:36:15 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2020-09-29T21:36:15Z</dc:date>
    <item>
      <title>mstats latest(_time) not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mstats-latest-time-not-working/m-p/423737#M121603</link>
      <description>&lt;P&gt;I am not able to get the latest (or earliest) _time values using mstats.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| mstats sum(bytes) latest(_time)
where index=metrics_app_dest_survey by app_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is returning:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5912i8AAF20DD5BF8616E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 16:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mstats-latest-time-not-working/m-p/423737#M121603</guid>
      <dc:creator>simpkins1958</dc:creator>
      <dc:date>2018-10-11T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: mstats latest(_time) not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mstats-latest-time-not-working/m-p/423738#M121604</link>
      <description>&lt;P&gt;Misunderstanding on my part. I thought we could get the earliest/latest time value. Now I see that latest()/earliest() are for the metric value not _time value.&lt;/P&gt;

&lt;P&gt;In 7.2 there are new time functions latest_time() and earliest_time() that get the time values.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mstats-latest-time-not-working/m-p/423738#M121604</guid>
      <dc:creator>simpkins1958</dc:creator>
      <dc:date>2020-09-29T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: mstats latest(_time) not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mstats-latest-time-not-working/m-p/423739#M121605</link>
      <description>&lt;P&gt;You can get latest(_time), the screenshot you shared shows latest(time) as column name. It should be latest(_time) unless you are renaming _time to time &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mstats-latest-time-not-working/m-p/423739#M121605</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2020-09-29T21:36:15Z</dc:date>
    </item>
  </channel>
</rss>

