<?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: Group by latest modified time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-by-latest-modified-time/m-p/97019#M25090</link>
    <description>&lt;P&gt;It's not a question of syntax, it's a question of knowing functions.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2013 19:07:32 GMT</pubDate>
    <dc:creator>grijhwani</dc:creator>
    <dc:date>2013-07-16T19:07:32Z</dc:date>
    <item>
      <title>Group by latest modified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-latest-modified-time/m-p/97017#M25088</link>
      <description>&lt;P&gt;I have a dataset in Splunk that roughly looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ID=1, Status="Pending", LastModifiedDate="2013-07-14 00:00:00.000", Product=xyz
ID=2, Status="Delivered", LastModifiedDate="2013-07-15 00:00:00.000", Product=xyz
ID=1, Status="Billed", LastModifiedDate="2013-07-16 00:00:00.000", Product=xyz
ID=2, Status="Pending", LastModifiedDate="2013-07-14 00:00:00.000", Product=xyz
ID=1, Status="Delivered", LastModifiedDate="2013-07-15 00:00:00.000", Product=xyz
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was looking for a query that will return the latest (top) modified event group by ID. The query should also suppress older events. For the above set, I was looking at the query to return the following result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ID=1, Status="Billed", LastModifiedDate="2013-07-16 00:00:00.000", Product=xyz
ID=2, Status="Delivered", LastModifiedDate="2013-07-15 00:00:00.000", Product=xyz
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas on syntax for the query?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 18:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-latest-modified-time/m-p/97017#M25088</guid>
      <dc:creator>ajitsd</dc:creator>
      <dc:date>2013-07-16T18:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Group by latest modified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-latest-modified-time/m-p/97018#M25089</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;{search} | dedup ID sortby -LastModifiedDate
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2013 19:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-latest-modified-time/m-p/97018#M25089</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2013-07-16T19:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Group by latest modified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-latest-modified-time/m-p/97019#M25090</link>
      <description>&lt;P&gt;It's not a question of syntax, it's a question of knowing functions.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 19:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-latest-modified-time/m-p/97019#M25090</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2013-07-16T19:07:32Z</dc:date>
    </item>
  </channel>
</rss>

