<?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: group ports by IP in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/group-ports-by-IP/m-p/34591#M7482</link>
    <description>&lt;P&gt;Not strictly on one line, but each IP along with a list of the port it's used:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(dest_port) by src_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(assuming your port field is &lt;CODE&gt;dest_port&lt;/CODE&gt; and the host field is &lt;CODE&gt;src_ip&lt;/CODE&gt;.)&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2012 20:10:33 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-04-24T20:10:33Z</dc:date>
    <item>
      <title>group ports by IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-ports-by-IP/m-p/34590#M7481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm hoping this is trivial but I've searched and can't really find the answer.&lt;/P&gt;

&lt;P&gt;I'm searching TCP connections and would like to have a list of all the IP addresses and what ports they have used.  A sample would look like this:&lt;/P&gt;

&lt;P&gt;10.1.1.1  21 22 23 80 8080&lt;/P&gt;

&lt;P&gt;I don't care how the ports are grouped but I would like them all on the line with the IP address if possible.&lt;/P&gt;

&lt;P&gt;Thanks for any help on this one.&lt;/P&gt;

&lt;P&gt;Curt&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 19:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-ports-by-IP/m-p/34590#M7481</guid>
      <dc:creator>curtgran</dc:creator>
      <dc:date>2012-04-24T19:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: group ports by IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-ports-by-IP/m-p/34591#M7482</link>
      <description>&lt;P&gt;Not strictly on one line, but each IP along with a list of the port it's used:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(dest_port) by src_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(assuming your port field is &lt;CODE&gt;dest_port&lt;/CODE&gt; and the host field is &lt;CODE&gt;src_ip&lt;/CODE&gt;.)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 20:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-ports-by-IP/m-p/34591#M7482</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-04-24T20:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: group ports by IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-ports-by-IP/m-p/34592#M7483</link>
      <description>&lt;P&gt;I might try something with stats, e.g. &lt;CODE&gt;&amp;lt;search&amp;gt; ... | stats list(port) as portlist by ip | table ip, portlist&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 20:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-ports-by-IP/m-p/34592#M7483</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-04-24T20:15:59Z</dc:date>
    </item>
  </channel>
</rss>

