<?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 Unique Port Count Per IP in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60377#M14877</link>
    <description>&lt;P&gt;I'm trying to find the number of unique ports accessed by IP's, by count.  i.e. IP 8.8.8.8 connected to 5 unique ports.  As of right now I am able to see the unique ports connected to by the IP address with the below command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="source_traffic" | stats values(src_port) by dst_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to count those unique ports and display only that number?  I have also tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="source_traffic" dst_ip="x.x.x.x" | stats count values(src_port) by dst_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This one appears to the show a higher count than displayed port numbers.&lt;/P&gt;

&lt;P&gt;TIA for any help!&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2013 20:38:03 GMT</pubDate>
    <dc:creator>ThisIsTom</dc:creator>
    <dc:date>2013-06-11T20:38:03Z</dc:date>
    <item>
      <title>Unique Port Count Per IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60377#M14877</link>
      <description>&lt;P&gt;I'm trying to find the number of unique ports accessed by IP's, by count.  i.e. IP 8.8.8.8 connected to 5 unique ports.  As of right now I am able to see the unique ports connected to by the IP address with the below command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="source_traffic" | stats values(src_port) by dst_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to count those unique ports and display only that number?  I have also tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="source_traffic" dst_ip="x.x.x.x" | stats count values(src_port) by dst_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This one appears to the show a higher count than displayed port numbers.&lt;/P&gt;

&lt;P&gt;TIA for any help!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 20:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60377#M14877</guid>
      <dc:creator>ThisIsTom</dc:creator>
      <dc:date>2013-06-11T20:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Port Count Per IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60378#M14878</link>
      <description>&lt;P&gt;I guess you can do something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats dc(src_port) by dst_ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2013 20:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60378#M14878</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-06-11T20:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Port Count Per IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60379#M14879</link>
      <description>&lt;P&gt;Appreciate the quick response!  It was on the money.&lt;/P&gt;

&lt;P&gt;sourcetype="source_traffic"  | stats dc(src_port) by dst_ip&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60379#M14879</guid>
      <dc:creator>ThisIsTom</dc:creator>
      <dc:date>2020-09-28T14:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Port Count Per IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60380#M14880</link>
      <description>&lt;P&gt;I'm actually looking for something similar however not to find the count of ports but a listing of the actual ports that IP is using. So like a top 10 src_ip and then the top 3 ports that each of the src_ip's is using. Does that make sense?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-Port-Count-Per-IP/m-p/60380#M14880</guid>
      <dc:creator>lbogle</dc:creator>
      <dc:date>2020-09-28T16:45:36Z</dc:date>
    </item>
  </channel>
</rss>

