<?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 How to edit my search to exclude the top 20 noisy results and return the rest? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383769#M112084</link>
    <description>&lt;P&gt;I have a splunk search for a list of users performing a particular task. I want to exclude the top 20 noisy results and fetch the other results. How can I do it?&lt;BR /&gt;
Please help me with this, my sample query is :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="x"  | stats count by a,b | fields + a,b,count | sort count desc.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now this generates a big list of results out of which I want to filter out the top 20 noisy results. I tried top 20 followed by the rare command or tail with the reverse command but it doesn't fetch the right results.&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2019 13:30:01 GMT</pubDate>
    <dc:creator>phant0mgh0st</dc:creator>
    <dc:date>2019-05-21T13:30:01Z</dc:date>
    <item>
      <title>How to edit my search to exclude the top 20 noisy results and return the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383769#M112084</link>
      <description>&lt;P&gt;I have a splunk search for a list of users performing a particular task. I want to exclude the top 20 noisy results and fetch the other results. How can I do it?&lt;BR /&gt;
Please help me with this, my sample query is :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="x"  | stats count by a,b | fields + a,b,count | sort count desc.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now this generates a big list of results out of which I want to filter out the top 20 noisy results. I tried top 20 followed by the rare command or tail with the reverse command but it doesn't fetch the right results.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:30:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383769#M112084</guid>
      <dc:creator>phant0mgh0st</dc:creator>
      <dc:date>2019-05-21T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to exclude the top 20 noisy results and return the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383770#M112085</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;After sorting your data, you can try that : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| streamstats count as nb
| where nb &amp;gt; 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will remove the first 20 rows of your table &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Let me know if it helps you.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 15:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383770#M112085</guid>
      <dc:creator>KailA</dc:creator>
      <dc:date>2019-05-21T15:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to exclude the top 20 noisy results and return the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383771#M112086</link>
      <description>&lt;P&gt;The reason is because, sort limits to 10K &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/sort"&gt;results&lt;/A&gt; by default settings.&lt;BR /&gt;
An easier option is to do the limiting before itself&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="x" | top a by b
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2019 15:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383771#M112086</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-21T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to exclude the top 20 noisy results and return the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383772#M112087</link>
      <description>&lt;P&gt;@phant0mgh0st Try something like below to exclude top 20 noisy results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="x" | stats count by a,b | fields + a,b,count | sort 0 count desc | streamstats count as id| where id &amp;gt; 20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2019 16:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-exclude-the-top-20-noisy-results-and/m-p/383772#M112087</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-21T16:04:39Z</dc:date>
    </item>
  </channel>
</rss>

