<?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: Limit to first 10 counts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/673014#M230484</link>
    <description>&lt;P&gt;You can try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1w useother=false limit=10 count by Service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This should limit to only the top 10 and also discard any events that don't fall into the top 10.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 14:03:29 GMT</pubDate>
    <dc:creator>dtburrows3</dc:creator>
    <dc:date>2024-01-02T14:03:29Z</dc:date>
    <item>
      <title>Limit to first 10 counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/673013#M230483</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I am having a problem displaying a graph. I have an index that contains incidents from several monitoring tools. I need to pull up a top 10 of the most recurring alerts (that's done).&lt;/P&gt;&lt;P&gt;However, on this top 10, I am asked for a graph to show the evolution of the number of errors in this top per week (in order to see for example when a fix has been deployed). And this is where I encounter a problem: in my query, I have my top 10 but I have an OTHER which brings together everything that is after the top 10:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rajaion_0-1704203704535.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28710iFA8816BDDA8625CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rajaion_0-1704203704535.png" alt="Rajaion_0-1704203704535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is the query that causes this graph:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=oncall_prod
| search routingKey != "routingdynatrace_cluster"
| dedup incidentNumber
| rename entityDisplayName as Service
| timechart span=1w count by Service 
| sort - count limit=10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use "&lt;STRONG&gt;head&lt;/STRONG&gt;" or "&lt;STRONG&gt;top&lt;/STRONG&gt;" to force the display of the first 10 results only but in the case of "&lt;STRONG&gt;head&lt;/STRONG&gt;", it doesn't change anything, and in the case of "&lt;STRONG&gt;top&lt;/STRONG&gt;", my screen remains empty.&lt;BR /&gt;I've searched the forum and it's often these two answers that come up but in my case, it doesn't work. Do you know how to remove the OTHER to only have the first 10 results in my graph?&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Rajaion&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 13:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/673013#M230483</guid>
      <dc:creator>Rajaion</dc:creator>
      <dc:date>2024-01-02T13:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to first 10 counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/673014#M230484</link>
      <description>&lt;P&gt;You can try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1w useother=false limit=10 count by Service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This should limit to only the top 10 and also discard any events that don't fall into the top 10.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 14:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/673014#M230484</guid>
      <dc:creator>dtburrows3</dc:creator>
      <dc:date>2024-01-02T14:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to first 10 counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/673016#M230485</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263242"&gt;@dtburrows3&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I didn't know about this "useother" option, and it works, it's exactly what I was looking for:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rajaion_0-1704204309989.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28711i3B5F490D7D0029C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rajaion_0-1704204309989.png" alt="Rajaion_0-1704204309989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Lionel M.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 14:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/673016#M230485</guid>
      <dc:creator>Rajaion</dc:creator>
      <dc:date>2024-01-02T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to first 10 counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/709379#M239745</link>
      <description>&lt;P&gt;How can this be used to find the last 10 events in chronological order?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 22:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Limit-to-first-10-counts/m-p/709379#M239745</guid>
      <dc:creator>CJ117</dc:creator>
      <dc:date>2025-01-21T22:48:44Z</dc:date>
    </item>
  </channel>
</rss>

