<?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 create a host scanning report to count the number of IPs an external IP has connected to within 1 minute? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262500#M78803</link>
    <description>&lt;P&gt;You bet.  Does that accomplish what you were trying to do?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2016 17:19:52 GMT</pubDate>
    <dc:creator>justinatpnnl</dc:creator>
    <dc:date>2016-02-08T17:19:52Z</dc:date>
    <item>
      <title>How to create a host scanning report to count the number of IPs an external IP has connected to within 1 minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262495#M78798</link>
      <description>&lt;P&gt;I don't know if this has been answered in another question, but I'm trying to run a report for external IPs that have scanned our network. I'm indexing our full packet capture solution. My problem is that my criterion for a scan is one external IP that has connected to more than let's say 100 internal IPs in say under 1 minute. &lt;/P&gt;

&lt;P&gt;So basically I'm asking, how do I create a report where I want to count the number of IPs where one field in one event is another field of 100 other events where the difference in a 3rd field (timestamp) in those 100 events is less than a certain value (1 minute). Could someone give me an idea on how to solve this please?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 11:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262495#M78798</guid>
      <dc:creator>ststephe</dc:creator>
      <dc:date>2016-02-02T11:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a host scanning report to count the number of IPs an external IP has connected to within 1 minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262496#M78799</link>
      <description>&lt;P&gt;What about something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... your search for scan data ... | bucket _time span=1m | stats dc(internal_ip) as connected_ips by _time, external_ip | search connected_ips &amp;gt;= 100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Feb 2016 21:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262496#M78799</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-02-02T21:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a host scanning report to count the number of IPs an external IP has connected to within 1 minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262497#M78800</link>
      <description>&lt;P&gt;I'm still a little new to splunk searches so I'm not quite sure I understand this search. you bucket all events that span 1 minute then count all internal_ip (not sure what as does or the comma) using _time as an input and declaring connected_ips as a variable somehow? then searching that value for all values greater than 100? As a programmer I'm thinking of more of a foreach loop of some kind, which I also don't really understand in splunk, then counts through each external IP and counts the number of events with a different internal IP in the span of 1 minute and returns that external IP and count of events so I can put in a pie chart.&lt;/P&gt;

&lt;P&gt;Could you please help me with this search.  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262497#M78800</guid>
      <dc:creator>ststephe</dc:creator>
      <dc:date>2020-09-29T08:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a host scanning report to count the number of IPs an external IP has connected to within 1 minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262498#M78801</link>
      <description>&lt;P&gt;No problem, I'll explain what I was thinking and see if it matches up with what you wanted to accomplish.&lt;/P&gt;

&lt;P&gt;First:  &lt;CODE&gt;| bucket _time span=1m&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This takes all of your events and essentially rounds their timestamps down to the current minute.  This allows you to have a common field &lt;CODE&gt;_time&lt;/CODE&gt; for all of your events that occurred within the same minute&lt;/P&gt;

&lt;P&gt;Next:  &lt;CODE&gt;| stats dc(internal_ip) as connected_ips by _time, external_ip&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The stats command allows you to perform operations on your data like count, average, or in this case:  Distinct count.  Basically I'm telling it to give you a count of the unique internal IP addresses, using &lt;CODE&gt;as&lt;/CODE&gt; to give it a new field name called connected_ips.  Using &lt;CODE&gt;by&lt;/CODE&gt; we tell the results to grouped by _time (which is now grouped into one minute intervals) and external_ip.&lt;/P&gt;

&lt;P&gt;The comma separating the two &lt;CODE&gt;by&lt;/CODE&gt; fields is optional, I just like to use it for readability.&lt;/P&gt;

&lt;P&gt;Finally:  &lt;CODE&gt;| search connected_ips &amp;gt;= 100&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Now we tell Splunk to take the previous data and only show the results that talked to 100+ internal IPs.  You should now have a result that lists the _time, external_ip, and the number of internal IPs that they connected to.&lt;/P&gt;

&lt;P&gt;Does that match with what you were shooting for?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262498#M78801</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2020-09-29T08:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a host scanning report to count the number of IPs an external IP has connected to within 1 minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262499#M78802</link>
      <description>&lt;P&gt;Thank you for the help, that makes much more sense. &lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 15:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262499#M78802</guid>
      <dc:creator>ststephe</dc:creator>
      <dc:date>2016-02-08T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a host scanning report to count the number of IPs an external IP has connected to within 1 minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262500#M78803</link>
      <description>&lt;P&gt;You bet.  Does that accomplish what you were trying to do?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 17:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262500#M78803</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-02-08T17:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a host scanning report to count the number of IPs an external IP has connected to within 1 minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262501#M78804</link>
      <description>&lt;P&gt;yes it does. Thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 12:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-host-scanning-report-to-count-the-number-of-IPs/m-p/262501#M78804</guid>
      <dc:creator>ststephe</dc:creator>
      <dc:date>2016-02-09T12:26:05Z</dc:date>
    </item>
  </channel>
</rss>

