<?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: Sort and display top 5 values alone in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164348#M46690</link>
    <description>&lt;P&gt;Worked... Thanks...&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2015 18:04:24 GMT</pubDate>
    <dc:creator>sushmitha_mj</dc:creator>
    <dc:date>2015-04-23T18:04:24Z</dc:date>
    <item>
      <title>Sort and display top 5 values alone</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164346#M46688</link>
      <description>&lt;P&gt;I am trying to display the top 5 memory used values by command - Meaning the top 5 commands with maximum usage, but I seem to be unable to get the output. Here is my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=ps host=xyz  | eval RSZ_MB=RSZ_KB/1024| stats max(RSZ_MB) as "Memory_Used" by COMMAND | sort -Memory_Used | top 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sushmitha&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 17:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164346#M46688</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-04-23T17:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and display top 5 values alone</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164347#M46689</link>
      <description>&lt;P&gt;hi try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=ps host=xyz | eval RSZ_MB=RSZ_KB/1024| stats max(RSZ_MB) as "Memory_Used" by COMMAND | sort -Memory_Used | top limit=5 Memory_Used
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Apr 2015 17:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164347#M46689</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-04-23T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and display top 5 values alone</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164348#M46690</link>
      <description>&lt;P&gt;Worked... Thanks...&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 18:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164348#M46690</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-04-23T18:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and display top 5 values alone</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164349#M46691</link>
      <description>&lt;P&gt;Excellent! Please &lt;STRONG&gt;vote&lt;/STRONG&gt; if the answer was helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 21:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-and-display-top-5-values-alone/m-p/164349#M46691</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-04-23T21:53:57Z</dc:date>
    </item>
  </channel>
</rss>

