<?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: How do i filter out all but the most recent results for a particular field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157820#M44457</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Jun 2015 03:21:47 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-06-16T03:21:47Z</dc:date>
    <item>
      <title>How do i filter out all but the most recent results for a particular field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157819#M44456</link>
      <description>&lt;P&gt;I'd like to create a search that allows me to filter out all the old results and only give me back the latest result for a given field value.&lt;BR /&gt;
How can I do this?  (similar to the latest in the stats command but for the actual results)&lt;/P&gt;

&lt;P&gt;For example given the following results:&lt;BR /&gt;
2015-05-01 Version:1.34 user:b&lt;BR /&gt;
2015-04-01 Version:1.2 user:a&lt;BR /&gt;
2015-03-03 Version: 1.34 user:a&lt;BR /&gt;
2015-02-03 Version: 1.2 user:b&lt;/P&gt;

&lt;P&gt;I only want to see the following:&lt;BR /&gt;
2015-04-01 Version:1.2 user:a&lt;BR /&gt;
2015-05-01 Version:1.34 user:b&lt;/P&gt;

&lt;P&gt;i.e. I only want to see the latest version per user.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 02:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157819#M44456</guid>
      <dc:creator>musgrape</dc:creator>
      <dc:date>2015-06-16T02:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do i filter out all but the most recent results for a particular field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157820#M44457</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jun 2015 03:21:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157820#M44457</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-16T03:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do i filter out all but the most recent results for a particular field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157821#M44458</link>
      <description>&lt;P&gt;use the last function:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;stats last(version) by user&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 03:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157821#M44458</guid>
      <dc:creator>cmeinco</dc:creator>
      <dc:date>2015-06-16T03:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do i filter out all but the most recent results for a particular field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157822#M44459</link>
      <description>&lt;P&gt;Perfect thanks.  This worked for me:&lt;BR /&gt;
dedup user sortby -_time | table...&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 05:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-filter-out-all-but-the-most-recent-results-for-a/m-p/157822#M44459</guid>
      <dc:creator>musgrape</dc:creator>
      <dc:date>2015-06-16T05:26:08Z</dc:date>
    </item>
  </channel>
</rss>

