<?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 Correlating Data from 2 Indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Correlating-Data-from-2-Indexes/m-p/545627#M154595</link>
    <description>&lt;P&gt;I have 2 indexes, one called &lt;STRONG&gt;linux&lt;/STRONG&gt; and another called &lt;STRONG&gt;firewall&lt;/STRONG&gt;, how can I correlate both indexes to determine if the &lt;STRONG&gt;src field&lt;/STRONG&gt; (of the &lt;STRONG&gt;linux&lt;/STRONG&gt; index) is equal to the &lt;STRONG&gt;UserIP&lt;/STRONG&gt; field (of the &lt;STRONG&gt;firewall&lt;/STRONG&gt; index)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 15:55:04 GMT</pubDate>
    <dc:creator>splunkcol</dc:creator>
    <dc:date>2021-03-26T15:55:04Z</dc:date>
    <item>
      <title>Correlating Data from 2 Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-Data-from-2-Indexes/m-p/545627#M154595</link>
      <description>&lt;P&gt;I have 2 indexes, one called &lt;STRONG&gt;linux&lt;/STRONG&gt; and another called &lt;STRONG&gt;firewall&lt;/STRONG&gt;, how can I correlate both indexes to determine if the &lt;STRONG&gt;src field&lt;/STRONG&gt; (of the &lt;STRONG&gt;linux&lt;/STRONG&gt; index) is equal to the &lt;STRONG&gt;UserIP&lt;/STRONG&gt; field (of the &lt;STRONG&gt;firewall&lt;/STRONG&gt; index)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-Data-from-2-Indexes/m-p/545627#M154595</guid>
      <dc:creator>splunkcol</dc:creator>
      <dc:date>2021-03-26T15:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating Data from 2 Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-Data-from-2-Indexes/m-p/545631#M154599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223770"&gt;@splunkcol&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you have two indexes and you want to list all the IPs in both the archives indicanding if they are present in both or only in one, is it correct?&lt;/P&gt;&lt;P&gt;if this is your need, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=linux OR index=firewall
| eval ip=coalesce(src,UserIP)
| stats dc(index) AS dc_index values(index) AS index BY ip
| eval status=if(dc_index=2,"Both indexes",if(index="linux","Linux Index","Firewall Index"))
| sort ip
| table ip status&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 16:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-Data-from-2-Indexes/m-p/545631#M154599</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-26T16:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating Data from 2 Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-Data-from-2-Indexes/m-p/546133#M154795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223770"&gt;@splunkcol&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 06:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-Data-from-2-Indexes/m-p/546133#M154795</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-31T06:31:26Z</dc:date>
    </item>
  </channel>
</rss>

