<?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: Top N results in table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Top-N-results-in-table/m-p/256233#M176418</link>
    <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving Machine, ErrorType ,ErrorCount | sort 0 Machine,-num(ErrorCount) | dedup Machine
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Oct 2016 16:39:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-10-17T16:39:06Z</dc:date>
    <item>
      <title>Top N results in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-N-results-in-table/m-p/256232#M176417</link>
      <description>&lt;P&gt;The intermediate result of a query is&lt;/P&gt;

&lt;P&gt;Machine | ErrorType |ErrorCount&lt;BR /&gt;
A               | ErrorA      | 4&lt;BR /&gt;
A               | ErrorB      | 3&lt;BR /&gt;
B               | ErrorC      | 6&lt;BR /&gt;
B               | ErrorD      | 3&lt;BR /&gt;
C               | ErrorE      | 3&lt;BR /&gt;
C               | ErrorF      | 9&lt;/P&gt;

&lt;P&gt;I want to show the top 1 result(in terms of Error count)  per machine. The result should be like&lt;/P&gt;

&lt;P&gt;Machine | ErrorType |ErrorCount&lt;BR /&gt;
A               | ErrorA      | 4&lt;BR /&gt;
A               | ErrorC      | 6&lt;BR /&gt;
B               | ErrorF      | 9&lt;/P&gt;

&lt;P&gt;I tried using  "top 1 ErrorCount by Machine" but it is trimming other useful fields like ErrorType.&lt;BR /&gt;
How do I achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:20:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-N-results-in-table/m-p/256232#M176417</guid>
      <dc:creator>ponsakthi</dc:creator>
      <dc:date>2016-10-17T14:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Top N results in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-N-results-in-table/m-p/256233#M176418</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving Machine, ErrorType ,ErrorCount | sort 0 Machine,-num(ErrorCount) | dedup Machine
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Oct 2016 16:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-N-results-in-table/m-p/256233#M176418</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-17T16:39:06Z</dc:date>
    </item>
  </channel>
</rss>

