<?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 Transaction Search: How to search after matching IPs from different sourcetypes. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205790#M40612</link>
    <description>&lt;P&gt;I want to search for matching IPs (&lt;STRONG&gt;dest_ip&lt;/STRONG&gt;) between my events from my sourcetype "Vectra-CEF" and other sourcetypes with their IP in field &lt;STRONG&gt;src&lt;/STRONG&gt;. I was not able to find my answer in Splunk Answers.&lt;/P&gt;

&lt;P&gt;This search does not work out:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype="Vectra-CEF" OR (sourcetype="*") | transaction dest_ip src maxspan=5d connected=f |eval count_sourcetypes=mvcount(sourcetype)|where count_sourcetypes&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Feb 2016 03:42:30 GMT</pubDate>
    <dc:creator>alex1895</dc:creator>
    <dc:date>2016-02-17T03:42:30Z</dc:date>
    <item>
      <title>Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205790#M40612</link>
      <description>&lt;P&gt;I want to search for matching IPs (&lt;STRONG&gt;dest_ip&lt;/STRONG&gt;) between my events from my sourcetype "Vectra-CEF" and other sourcetypes with their IP in field &lt;STRONG&gt;src&lt;/STRONG&gt;. I was not able to find my answer in Splunk Answers.&lt;/P&gt;

&lt;P&gt;This search does not work out:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype="Vectra-CEF" OR (sourcetype="*") | transaction dest_ip src maxspan=5d connected=f |eval count_sourcetypes=mvcount(sourcetype)|where count_sourcetypes&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 03:42:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205790#M40612</guid>
      <dc:creator>alex1895</dc:creator>
      <dc:date>2016-02-17T03:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205791#M40613</link>
      <description>&lt;P&gt;Maybe something more a long the lines of &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=vectra-cef OR sourcetype=* | stats count dc(dest_ip) AS unique_dest_ip dc(src) AS unique_src by sourcetype | where unique_dest_ip &amp;gt; 1 OR unique_src &amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 04:15:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205791#M40613</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2016-02-17T04:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205792#M40614</link>
      <description>&lt;P&gt;Not sure how this helps.  I can't see how you search command does the matching of IPs I want. I put the sourcetype_count in so that only a event is displayed if an IP from Vectra-CEF matches with a different sourcetype.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 04:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205792#M40614</guid>
      <dc:creator>alex1895</dc:creator>
      <dc:date>2016-02-17T04:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205793#M40615</link>
      <description>&lt;P&gt;Not sure if the transaction command is really required here. You should be able to find IP's (dest_ip or src) between your sourcetypes like this&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated#2&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=* | eval common_ip=if(sourcetype="Vectra-CEF",dest_ip,src) | stats values(sourcetype) as sourcetypes by common_ip | where mvcount(sourcetypes)&amp;gt;1 AND isnotnull(mvfind(sourcetypes,"Vectra-CEF"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you do have a constraint which require you to use transaction, try like this (would not recommend though)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=* | eval common_ip=if(sourcetype="Vectra-CEF",dest_ip,src) | transaction common_ip maxspan=5d connected=f | where mvcount(sourcetype)&amp;gt;1  AND isnotnull(mvfind(sourcetype,"Vectra-CEF"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 05:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205793#M40615</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-17T05:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205794#M40616</link>
      <description>&lt;P&gt;Thanks, looks good. The only problem I now still have that I only want dest_ip taken from a one specific sourcetype. For the src I want every sourcetype included beside the other one I have used before.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205794#M40616</guid>
      <dc:creator>alex1895</dc:creator>
      <dc:date>2016-02-17T06:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205795#M40617</link>
      <description>&lt;P&gt;Not at all difficult to take care of that problem. Try the updated answer.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205795#M40617</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-17T06:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205796#M40618</link>
      <description>&lt;P&gt;It still for some reason gives events with two or more sourcetypes without the sourcetype "Vectra-CEF". Any idea why?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205796#M40618</guid>
      <dc:creator>alex1895</dc:creator>
      <dc:date>2016-02-17T06:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205797#M40619</link>
      <description>&lt;P&gt;I missed the part "matching IP". So now I added a condition to check that sourcetype list should contain Vectra-CEF sourcetype.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205797#M40619</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-17T06:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Search: How to search after matching IPs from different sourcetypes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205798#M40620</link>
      <description>&lt;P&gt;Excellent. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 07:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-Search-How-to-search-after-matching-IPs-from/m-p/205798#M40620</guid>
      <dc:creator>alex1895</dc:creator>
      <dc:date>2016-02-17T07:03:48Z</dc:date>
    </item>
  </channel>
</rss>

