<?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 generate a search that will correlate multiple IP addresses that hit the same URL? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200525#M58146</link>
    <description>&lt;P&gt;This did it.  My final search for those that are interested:&lt;BR /&gt;
index=* sourcetype="cisco:squid" (IP OR IP OR IP OR IP)&lt;BR /&gt;
| transaction url&lt;BR /&gt;
| fields url, src&lt;BR /&gt;
| eval IPCount=mvcount(src)&lt;BR /&gt;
| table url, src, IPCount&lt;BR /&gt;
| where IPCount = 4&lt;/P&gt;

&lt;P&gt;My splunk results had the IP under src which is why my final search slightly deviates from what gokadroid provided.  This worked great though and showed me the URL I was interested in serving up malware to all of my IP's.  Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2016 18:32:26 GMT</pubDate>
    <dc:creator>DavidScavotto</dc:creator>
    <dc:date>2016-10-31T18:32:26Z</dc:date>
    <item>
      <title>How to generate a search that will correlate multiple IP addresses that hit the same URL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200519#M58140</link>
      <description>&lt;P&gt;I am utilizing Cisco Ironport Squid logs. I found a suspicious event that is possible malware related and multiple computers/IP addresses hit. I would like to see if multiple computers hit the same URL to possibly get malware.  &lt;/P&gt;

&lt;P&gt;What I would like to do is correlate multiple IP addresses (sourcetype=cisco:squid (IP or IP or IP or IP or IP) that have hit the same URL address to assess whether they grabbed a file or visited the same malicious site.  I know &lt;CODE&gt;| top limit = 20 url&lt;/CODE&gt; will get me the most hit URLs from these IP's, but I am only interested in the URLs that are the same across all IP's.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 16:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200519#M58140</guid>
      <dc:creator>DavidScavotto</dc:creator>
      <dc:date>2016-10-31T16:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will correlate multiple IP addresses that hit the same URL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200520#M58141</link>
      <description>&lt;P&gt;if URL and ip is already extracted fields on your events try transaction on url:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base query to return ips and urls events
| transaction url 
| table url, ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Oct 2016 17:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200520#M58141</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-31T17:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will correlate multiple IP addresses that hit the same URL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200521#M58142</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=cisco:squid (IP or IP or IP or IP or IP)|eventstats dc(IP) as totalIPs|stats values(IP) as IPaddresses dc(IP) as dcIP max(totalIPs) as totalIPs by URL|where dcIP=totalIPs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;something like this should give you what you're looking for, if I'm not mistaken. the eventstats will distinctly count how many IPs you have total, then the stats command will list out the IP addresses and distinctly count them by each URL. If the number that hit the URL does not match the total, that URL would be filtered out, so you should only see URLs that were hit by every IP.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 17:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200521#M58142</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-10-31T17:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will correlate multiple IP addresses that hit the same URL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200522#M58143</link>
      <description>&lt;P&gt;This will work but you should want to avoid the &lt;CODE&gt;transaction&lt;/CODE&gt; command whenever possible due to slow performance &lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 17:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200522#M58143</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-10-31T17:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will correlate multiple IP addresses that hit the same URL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200523#M58144</link>
      <description>&lt;P&gt;This got me close to the answer I am looking for, but it still separates it out in individual lines with URL's that have not been hit by all 4 IP's.  Going through this list though I will see some URL's that do have all 4 IP's and that is exactly what I am looking for.  Any idea on how I can get it to show only URL hits that match all IP's put into my search?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 17:39:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200523#M58144</guid>
      <dc:creator>DavidScavotto</dc:creator>
      <dc:date>2016-10-31T17:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will correlate multiple IP addresses that hit the same URL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200524#M58145</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your base query to return ips and urls events
 | transaction url 
 |fields url , ip
 |eval ipCount=mvcount(ip)
 | table url, ip,ipCount
 | where ipCount &amp;gt;=4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And since you know the all 4 IPs at the start, start with searching on those 4 IPs in you base query&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 18:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200524#M58145</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-31T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will correlate multiple IP addresses that hit the same URL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200525#M58146</link>
      <description>&lt;P&gt;This did it.  My final search for those that are interested:&lt;BR /&gt;
index=* sourcetype="cisco:squid" (IP OR IP OR IP OR IP)&lt;BR /&gt;
| transaction url&lt;BR /&gt;
| fields url, src&lt;BR /&gt;
| eval IPCount=mvcount(src)&lt;BR /&gt;
| table url, src, IPCount&lt;BR /&gt;
| where IPCount = 4&lt;/P&gt;

&lt;P&gt;My splunk results had the IP under src which is why my final search slightly deviates from what gokadroid provided.  This worked great though and showed me the URL I was interested in serving up malware to all of my IP's.  Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 18:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-correlate-multiple-IP/m-p/200525#M58146</guid>
      <dc:creator>DavidScavotto</dc:creator>
      <dc:date>2016-10-31T18:32:26Z</dc:date>
    </item>
  </channel>
</rss>

