<?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 search for the same IP in multiple sourcetypes within a certain time frame? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209537#M61272</link>
    <description>&lt;P&gt;Thanks so much for your help.  All of the searches worked, but this one gave me the best view of what I was trying to accomplish.  I will try to build upon it from there to include other sourcetypes.  &lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 15:46:29 GMT</pubDate>
    <dc:creator>janiceb</dc:creator>
    <dc:date>2016-04-19T15:46:29Z</dc:date>
    <item>
      <title>How to search for the same IP in multiple sourcetypes within a certain time frame?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209532#M61267</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;

&lt;P&gt;I am looking for a way to search through 2 sourcetypes:&lt;BR /&gt;&lt;BR /&gt;
&lt;CODE&gt;sourcetype=bro_http&lt;/CODE&gt; AND &lt;CODE&gt;sourcetype=McAfee&lt;/CODE&gt;&lt;BR /&gt;
to find any indications of a source IP on my network that shows up in those sourcetypes within a certain time frame, let's say an hour. They both have a common field name of src_ip.  &lt;/P&gt;

&lt;P&gt;The purpose is to attempt to try and detect a possible incident that may have occurred and see any correlation that may exist.   &lt;/P&gt;

&lt;P&gt;Any ideas would be appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Janice&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209532#M61267</guid>
      <dc:creator>janiceb</dc:creator>
      <dc:date>2016-04-19T14:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for the same IP in multiple sourcetypes within a certain time frame?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209533#M61268</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=bro_http OR sourcetype=McAfee | 
chart count over src_ip by sourcetype | 
where McAfee&amp;gt;0 and bro_http&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209533#M61268</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-04-19T14:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for the same IP in multiple sourcetypes within a certain time frame?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209534#M61269</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=bro_http OR sourcetype=McAfee src_ip=* | chart count over src_ip by sourcetype | where bro_http&amp;gt;0 AND McAfee&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209534#M61269</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-19T14:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for the same IP in multiple sourcetypes within a certain time frame?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209535#M61270</link>
      <description>&lt;P&gt;Hi janiceb,&lt;/P&gt;

&lt;P&gt;This search will give you all related events for src_ip values that appear in both sourcetypes given a particular search time range:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src_ip=* sourcetype=bro_http OR sourcetype=McAfee | eventstats dc(sourcetype) AS sourcetype_count by src_ip | where sourcetype_count &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please let me know if this answers your question!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209535#M61270</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2016-04-19T15:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for the same IP in multiple sourcetypes within a certain time frame?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209536#M61271</link>
      <description>&lt;P&gt;After posting above, I think I realized what you want: Has an IP showed up in both sourcetypes within an hour of each other. I &lt;EM&gt;think&lt;/EM&gt; something like this will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=bro_http OR sourcetype=McAfee| 
bucket _time span=1m | 
stats count by src_ip sourcetype _time | sort _time |
streamstats current=f last(_time) as prev_time, last(sourcetype) as prev_sourcetype by src_ip | 
where prev_sourcetype!=sourcetype and _time-prev_time&amp;lt;3600 | 
eval prev_time=strftime(prev_time,"%Y-%m-%d %T")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209536#M61271</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-04-19T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for the same IP in multiple sourcetypes within a certain time frame?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209537#M61272</link>
      <description>&lt;P&gt;Thanks so much for your help.  All of the searches worked, but this one gave me the best view of what I was trying to accomplish.  I will try to build upon it from there to include other sourcetypes.  &lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209537#M61272</guid>
      <dc:creator>janiceb</dc:creator>
      <dc:date>2016-04-19T15:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for the same IP in multiple sourcetypes within a certain time frame?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209538#M61273</link>
      <description>&lt;P&gt;Hi Sundareshr.  Thanks for your help.  This search worked.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209538#M61273</guid>
      <dc:creator>janiceb</dc:creator>
      <dc:date>2016-04-19T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for the same IP in multiple sourcetypes within a certain time frame?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209539#M61274</link>
      <description>&lt;P&gt;Thanks for your assistance.  I wasn't able to get this to work for me.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 16:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-same-IP-in-multiple-sourcetypes-within-a/m-p/209539#M61274</guid>
      <dc:creator>janiceb</dc:creator>
      <dc:date>2016-04-19T16:04:28Z</dc:date>
    </item>
  </channel>
</rss>

