<?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: Find events from two source, when ip1=ip2 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182218#M36503</link>
    <description>&lt;P&gt;Thanks for your answer.&lt;BR /&gt;
First search work perfectly.&lt;BR /&gt;
But I think, this is not the fastest and optimized search...&lt;BR /&gt;
Are you agree with me?&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2014 06:13:36 GMT</pubDate>
    <dc:creator>dbabanov</dc:creator>
    <dc:date>2014-05-30T06:13:36Z</dc:date>
    <item>
      <title>Find events from two source, when ip1=ip2</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182216#M36501</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I have two source. First is IPS, second is ASA.&lt;BR /&gt;
I want to find unique IP address ("dest_ip") with signature 2245 OR 2700.&lt;BR /&gt;
My query is:&lt;BR /&gt;
sourcetype="snort" 2245 OR 2700 | dedup dest_ip | table dest_ip&lt;BR /&gt;
And now, i want to find events with this unique IP addess in ASA log. In ASA log IP called "srcip".&lt;/P&gt;

&lt;P&gt;sourcetype="asa" | append [search sourcetype="snort" 2245 OR 2700 | dedup dest_ip | table dest_ip] | where srcip=destip&lt;/P&gt;

&lt;P&gt;I think it is very simple, but I cannot find any answers and solutions to my question. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thank in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182216#M36501</guid>
      <dc:creator>dbabanov</dc:creator>
      <dc:date>2020-09-28T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find events from two source, when ip1=ip2</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182217#M36502</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="asa"  [search sourcetype="snort" 2245 OR 2700 | stats count by dest_ip | rename dest_ip as srcip | table srcip | format] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR (slower)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="snort" 2245 OR 2700 | stats count by dest_ip | map maxsearches=1000 search="sourcetype=asa src_ip=$dest_ip$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 May 2014 13:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182217#M36502</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-29T13:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find events from two source, when ip1=ip2</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182218#M36503</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;BR /&gt;
First search work perfectly.&lt;BR /&gt;
But I think, this is not the fastest and optimized search...&lt;BR /&gt;
Are you agree with me?&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 06:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182218#M36503</guid>
      <dc:creator>dbabanov</dc:creator>
      <dc:date>2014-05-30T06:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find events from two source, when ip1=ip2</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182219#M36504</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;BR /&gt;
First search work perfectly.&lt;BR /&gt;
But I think, this is not the fastest and optimized search...&lt;BR /&gt;
Are you agree with me?&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 06:13:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182219#M36504</guid>
      <dc:creator>dbabanov</dc:creator>
      <dc:date>2014-05-30T06:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find events from two source, when ip1=ip2</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182220#M36505</link>
      <description>&lt;P&gt;I do agree. There best method will be to use lookup table (if  no of dest_ips are low, which I believe will not be) OR use of summary indexing. You can schedule a saved search to write into a custom summary index hourly or daily, per your requirement, list of all dest_ip with signature 2245 OR 2700. Once that is setup, in the first query subsearch,instead of searching the main index, you'll just search from summary index data which is already summarize and will be much much faster (personal experience)&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/Knowledge/Configuresummaryindexes" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.1/Knowledge/Configuresummaryindexes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-events-from-two-source-when-ip1-ip2/m-p/182220#M36505</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T16:45:54Z</dc:date>
    </item>
  </channel>
</rss>

