<?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: Correlating two indexes data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174488#M186609</link>
    <description>&lt;P&gt;Thanks a lot !! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Oct 2014 10:26:30 GMT</pubDate>
    <dc:creator>abhayneilam</dc:creator>
    <dc:date>2014-10-24T10:26:30Z</dc:date>
    <item>
      <title>Correlating two indexes data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174484#M186605</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a correlation ID in one index  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;( index="AAA" | rex "XXXXXX\]\[(?.*?)\]" )  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which I want to match with the correlation ID of other index ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;( index="BBB" | rex "CCCCCCC\]\[(?.*?)\]" )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once matched I want to get the total count of how many correlation ID mathces between these two Indexes.&lt;/P&gt;

&lt;P&gt;Please help me to get the results.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174484#M186605</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2014-10-24T09:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating two indexes data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174485#M186606</link>
      <description>&lt;P&gt;index="AAA" | rex "XXXXXX][(?.?)]" | append [search index="BBB" | "CCCCCCC][(?.?)]" ] | stats count by correlaion_ID&lt;/P&gt;

&lt;P&gt;tried this ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174485#M186606</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-10-24T09:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating two indexes data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174486#M186607</link>
      <description>&lt;P&gt;so for both the Indexes , do we need to keep the same filed name as "Correlation_ID"&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174486#M186607</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2014-10-24T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating two indexes data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174487#M186608</link>
      <description>&lt;P&gt;Hi abhayneilam,&lt;/P&gt;

&lt;P&gt;based on the provided information, which is by the way very little, try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="AAA" OR index="BBB"  
| rex "XXXXXX\]\[(?&amp;lt;myID&amp;gt;.*?)\]" 
| rex "CCCCCCC\]\[(?&amp;lt;myID&amp;gt;.*?)\]" 
| streamstats window=2 last(myID) AS last_myID 
| where myID=last_myID 
| stats count by myID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should give you an idea or take a closer look at this answer &lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html"&gt;http://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174487#M186608</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-10-24T09:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating two indexes data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174488#M186609</link>
      <description>&lt;P&gt;Thanks a lot !! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 10:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-two-indexes-data/m-p/174488#M186609</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2014-10-24T10:26:30Z</dc:date>
    </item>
  </channel>
</rss>

