<?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: Top 10 IP along w/ top 4 ports in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182954#M52685</link>
    <description>&lt;P&gt;I updated the answer based on your example. Let me know if that works.&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2014 20:17:30 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-05-29T20:17:30Z</dc:date>
    <item>
      <title>Top 10 IP along w/ top 4 ports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182949#M52680</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;BR /&gt;
I'm looking to build a search w/ chart that tracks top 10 source IP's in a firewall but also a  listing of the actual ports each IP is using. So like a top 10 src_ip and then the top 3 ports (dest_port) that each of the src_ip's is using. Does that make sense?&lt;BR /&gt;
I can make the top 10 src_ip happen but I'm having trouble w/ adding the top 3 ports on top of that.&lt;BR /&gt;
I've so far been able to list the total number of ports but not which actual ports the IP's are using the most.&lt;BR /&gt;
Does that make sense?&lt;BR /&gt;
Thanks for any assistance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182949#M52680</guid>
      <dc:creator>lbogle</dc:creator>
      <dc:date>2020-09-28T16:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 IP along w/ top 4 ports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182950#M52681</link>
      <description>&lt;P&gt;stats count by src_ip,port&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 18:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182950#M52681</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2014-05-29T18:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 IP along w/ top 4 ports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182951#M52682</link>
      <description>&lt;P&gt;The comma. Brilliant. Thank you. Did not think to use that. The result is very close to what I am trying to get visualize and it's the closest I've come to it but I'm essentially trying to get a top 10 for src_ip and then combine it w/ a top 3 for dest_port so I have a bar graph where the X axis lists each IP and on top of each IP (y axis) is a stacked bar/graph indicating each port used and each stack in the bar indicates how many times each port has been used.&lt;BR /&gt;
Does that make sense?&lt;BR /&gt;
Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182951#M52682</guid>
      <dc:creator>lbogle</dc:creator>
      <dc:date>2020-09-28T16:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 IP along w/ top 4 ports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182952#M52683</link>
      <description>&lt;P&gt;Another way is:&lt;/P&gt;

&lt;P&gt;stats values(port) by src_ip&lt;BR /&gt;
or&lt;BR /&gt;
stats list(port) by src_ip&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182952#M52683</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2020-09-28T16:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 IP along w/ top 4 ports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182953#M52684</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=firewall host=ofw.Cadence.COM [search index=firewall host=ofw.Cadence.COM | top 10 src_ip | table src_ip]| stats count by src_ip,port | streamstats count as sno by src_ip | where sno &amp;lt; 4 | table src_ip, port,count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 May 2014 19:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182953#M52684</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-29T19:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 IP along w/ top 4 ports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182954#M52685</link>
      <description>&lt;P&gt;I updated the answer based on your example. Let me know if that works.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 20:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182954#M52685</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-29T20:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 IP along w/ top 4 ports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182955#M52686</link>
      <description>&lt;P&gt;So close! That got us the correct X line with the IP's at the bottom but the graph stacks did not list the used port numbers or limit the number of IP's according to the top 10 search. &lt;BR /&gt;
This search (below) does stack the ports properly and it does provide a legend. Does not list or limit IP's though. Check it out: index=firewall host=ofw.Corp.COM | stats count by src_ip,dest_port | chart sum(count) by src_ip dest_port&lt;BR /&gt;
here is a link to the article: &lt;A href="http://answers.splunk.com/answers/46246/how-do-i-create-a-firewall-report-with-both-destination-ip-and-destination-port" target="_blank"&gt;http://answers.splunk.com/answers/46246/how-do-i-create-a-firewall-report-with-both-destination-ip-and-destination-port&lt;/A&gt;&lt;BR /&gt;
Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182955#M52686</guid>
      <dc:creator>lbogle</dc:creator>
      <dc:date>2020-09-28T16:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 IP along w/ top 4 ports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182956#M52687</link>
      <description>&lt;P&gt;Hey I think I found it! Check it out:&lt;BR /&gt;
index=firewall host=ofw.Corp.COM NOT ran.dom.ip.add [search index=firewall host=ofw.Corp.COM | top 15 src_ip | table src_ip] | stats count by src_ip,dest_port | chart sum(count) by src_ip dest_port&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-IP-along-w-top-4-ports/m-p/182956#M52687</guid>
      <dc:creator>lbogle</dc:creator>
      <dc:date>2020-09-28T16:45:52Z</dc:date>
    </item>
  </channel>
</rss>

