<?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: How to achieve top 10 src_ip's along with top 10 urls for each src_ip? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606029#M210737</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=firewall 
| stats count by src_ip, url
| sort 0 src_ip -count
| streamstats count as standings by src_ip
| where standings &amp;lt; 11
| eventstats sum(count) as total by src_ip
| sort 0 -total src_ip -count
| streamstats count(eval(standings=1)) as rank
| where rank &amp;lt; 11&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 18 Jul 2022 18:14:30 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-07-18T18:14:30Z</dc:date>
    <item>
      <title>How to achieve top 10 src_ip's along with top 10 urls for each src_ip?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606025#M210734</link>
      <description>&lt;P&gt;I'm trying to run a query to figure out the top 10 src_ip's along with their top 10 urls visited. When I try the below query it's giving me every src_ip instead of just the top 10.&lt;/P&gt;
&lt;P&gt;Any suggestions on how to limit the search for just the top 10 src_ip by top 10 url?&lt;/P&gt;
&lt;P&gt;I've been running something like this:&lt;/P&gt;
&lt;P&gt;index=firewall | stats count by src_ip, url&lt;BR /&gt;| sort 0 src_ip -count&lt;BR /&gt;| streamstats count as standings by src_ip&lt;BR /&gt;| where standings &amp;lt; 11&lt;BR /&gt;| eventstats sum(count) as total by category&lt;BR /&gt;| sort 0 -total src_ip -count&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 18:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606025#M210734</guid>
      <dc:creator>jhamot23</dc:creator>
      <dc:date>2022-07-18T18:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve top 10 src_ip's along with top 10 urls for each src_ip?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606029#M210737</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=firewall 
| stats count by src_ip, url
| sort 0 src_ip -count
| streamstats count as standings by src_ip
| where standings &amp;lt; 11
| eventstats sum(count) as total by src_ip
| sort 0 -total src_ip -count
| streamstats count(eval(standings=1)) as rank
| where rank &amp;lt; 11&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Jul 2022 18:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606029#M210737</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-18T18:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve top 10 src_ip's along with top 10 urls for each src_ip?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606030#M210738</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226905"&gt;@jhamot23&lt;/a&gt;&amp;nbsp; Did you know there's a &lt;EM&gt;top&lt;/EM&gt; command? (it defaults to top 10, but this is configurable if you want)&lt;BR /&gt;See if this gets you in the neighborhood:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=firewall
| top src_ip BY url&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 18:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606030#M210738</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2022-07-18T18:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve top 10 src_ip's along with top 10 urls for each src_ip?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606031#M210739</link>
      <description>&lt;P&gt;Appreciate the insights. Yes I just started playing around with the top command, and this did help get me in the neighborhood but was looking for a more cleaner list of just top 10 src_ips by top 10 urls visited. Looks like the suggestion below got me the list I was looking for. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 18:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606031#M210739</guid>
      <dc:creator>jhamot23</dc:creator>
      <dc:date>2022-07-18T18:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve top 10 src_ip's along with top 10 urls for each src_ip?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606032#M210740</link>
      <description>&lt;P&gt;This is what I was looking for! Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 18:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-top-10-src-ip-s-along-with-top-10-urls-for-each/m-p/606032#M210740</guid>
      <dc:creator>jhamot23</dc:creator>
      <dc:date>2022-07-18T18:30:46Z</dc:date>
    </item>
  </channel>
</rss>

