<?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 Help with Top 10 by Speed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699594#M237492</link>
    <description>&lt;P&gt;So I have a SPL and it searchs an Index and brings back over 1.8 Million events&lt;/P&gt;&lt;P&gt;I have done some evals to get the Project, Size of file and Speed.&lt;/P&gt;&lt;P&gt;What I want to do is just to list the top 10 speeds and their relevant Project (It could be the same project is listed 10 times)&lt;/P&gt;&lt;P&gt;I have done something with stats(sum) but I don't want the sum....&lt;/P&gt;&lt;P&gt;Out of the 1.8 Million I need to just show the top 10 events and speed and it project number&lt;/P&gt;&lt;P&gt;My fields from eval are ProjectID, MB is the size and speed is SecTM is the speed&lt;/P&gt;&lt;P&gt;I seem to be stuck on Splunk doing a sum for the entire Project and I guess that would be true since I am using sum&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2024 14:20:04 GMT</pubDate>
    <dc:creator>LizAndy123</dc:creator>
    <dc:date>2024-09-19T14:20:04Z</dc:date>
    <item>
      <title>Help with Top 10 by Speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699594#M237492</link>
      <description>&lt;P&gt;So I have a SPL and it searchs an Index and brings back over 1.8 Million events&lt;/P&gt;&lt;P&gt;I have done some evals to get the Project, Size of file and Speed.&lt;/P&gt;&lt;P&gt;What I want to do is just to list the top 10 speeds and their relevant Project (It could be the same project is listed 10 times)&lt;/P&gt;&lt;P&gt;I have done something with stats(sum) but I don't want the sum....&lt;/P&gt;&lt;P&gt;Out of the 1.8 Million I need to just show the top 10 events and speed and it project number&lt;/P&gt;&lt;P&gt;My fields from eval are ProjectID, MB is the size and speed is SecTM is the speed&lt;/P&gt;&lt;P&gt;I seem to be stuck on Splunk doing a sum for the entire Project and I guess that would be true since I am using sum&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 14:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699594#M237492</guid>
      <dc:creator>LizAndy123</dc:creator>
      <dc:date>2024-09-19T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Top 10 by Speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699598#M237494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241396"&gt;@LizAndy123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;let me understand:&lt;/P&gt;&lt;P&gt;you want to find the first 10 projectIDs by Speed and the list of project of them, is it correct?&lt;/P&gt;&lt;P&gt;if this is your requirement, you can use stats:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats sum(Speed) AS Speed values(Project) AS Project  BY ProjectID
| sort -Speed
| head 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;this search runs if you have more Projects for each ProjectID.&lt;/P&gt;&lt;P&gt;If instead you want the most ten Projects BY Speed, you can use top:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| top 10 sum(Speed) AS Speed BY Project&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 14:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699598#M237494</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-19T14:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Top 10 by Speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699600#M237496</link>
      <description>&lt;P&gt;That kinda is correct but we are still doing is a Sum - For example I know ProjectID 855 uploads at least 50,000 times in a 30 day period - what I want is to just find the top 10 speeds and just list the Project ID of that single event but show the top 10&lt;/P&gt;&lt;P&gt;So Project 855 uploaded at 10 seconds then 1 second then 50 seconds...then Project 888 uploaded at 80 seconds then 90 seconds....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to see&lt;/P&gt;&lt;P&gt;Project 888 - 90&lt;/P&gt;&lt;P&gt;Project 888 - 80&lt;/P&gt;&lt;P&gt;Project 855 - 50&lt;/P&gt;&lt;P&gt;Project 855 - 10&lt;/P&gt;&lt;P&gt;Of course we have 00's of Projects so hopefully that makes sense &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 14:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699600#M237496</guid>
      <dc:creator>LizAndy123</dc:creator>
      <dc:date>2024-09-19T14:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Top 10 by Speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699607#M237500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241396"&gt;@LizAndy123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;ok, it's the reverse condition:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats values(ProjectID) AS ProjectID  BY Speed
| sort -Speed
| head 10
| table ProjectID Speed&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 15:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699607#M237500</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-19T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Top 10 by Speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699609#M237502</link>
      <description>&lt;P&gt;Perfect - thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 15:42:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Top-10-by-Speed/m-p/699609#M237502</guid>
      <dc:creator>LizAndy123</dc:creator>
      <dc:date>2024-09-19T15:42:25Z</dc:date>
    </item>
  </channel>
</rss>

