<?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: create a table by comparing data from 2 different indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-by-comparing-data-from-2-different-indexes/m-p/296848#M161595</link>
    <description>&lt;P&gt;@arjun_hcl... you would need to provide one key piece of information. Do you have any correlation field between the two indexes? &lt;/P&gt;

&lt;P&gt;Consider index and sourcetype in Splunk to be Database and tables. For correlating them we would need to establish a foreign key which is present in both.&lt;/P&gt;

&lt;P&gt;If possible please mock up your sample events from both indexes and post them here so that we can help you with the query you need. Do let us know the sourcetype for both indexes also.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 13:13:13 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-03-29T13:13:13Z</dc:date>
    <item>
      <title>create a table by comparing data from 2 different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-by-comparing-data-from-2-different-indexes/m-p/296846#M161593</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I am trying to create a table by comparing data from 2 different indexes &amp;amp; compare certain search terms from one index with matching events from second index&lt;/P&gt;

&lt;P&gt;for e.g &lt;BR /&gt;
index1 may contain a field word and terms error, down, fatal&lt;BR /&gt;
index2 may contain a field ticket and terms tkt1, tkt2, tkt3&lt;/P&gt;

&lt;P&gt;idea is to write duplicate values of tickets against each matiching terms from index1&lt;/P&gt;

&lt;P&gt;output would be like&lt;BR /&gt;
Ticket    |              word&lt;BR /&gt;
tkt1        |              error&lt;BR /&gt;
tkt1        |              down&lt;BR /&gt;
tkt1        |              fatal&lt;BR /&gt;
tkt2        |              error&lt;BR /&gt;
tkt2        |              down&lt;BR /&gt;
tkt2        |              fatal&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
etc.&lt;/P&gt;

&lt;P&gt;can someone help plz?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 08:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-table-by-comparing-data-from-2-different-indexes/m-p/296846#M161593</guid>
      <dc:creator>arjun_hcl</dc:creator>
      <dc:date>2017-03-29T08:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: create a table by comparing data from 2 different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-by-comparing-data-from-2-different-indexes/m-p/296847#M161594</link>
      <description>&lt;P&gt;I'm not sure if I understand the question but this seems to call for a join.  Reference: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Join"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Join&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 13:04:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-table-by-comparing-data-from-2-different-indexes/m-p/296847#M161594</guid>
      <dc:creator>earlhelms</dc:creator>
      <dc:date>2017-03-29T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: create a table by comparing data from 2 different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-by-comparing-data-from-2-different-indexes/m-p/296848#M161595</link>
      <description>&lt;P&gt;@arjun_hcl... you would need to provide one key piece of information. Do you have any correlation field between the two indexes? &lt;/P&gt;

&lt;P&gt;Consider index and sourcetype in Splunk to be Database and tables. For correlating them we would need to establish a foreign key which is present in both.&lt;/P&gt;

&lt;P&gt;If possible please mock up your sample events from both indexes and post them here so that we can help you with the query you need. Do let us know the sourcetype for both indexes also.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 13:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-table-by-comparing-data-from-2-different-indexes/m-p/296848#M161595</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-29T13:13:13Z</dc:date>
    </item>
  </channel>
</rss>

