<?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 Joining Multiple index and sourcetypes in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475095#M8179</link>
    <description>&lt;P&gt;I have two index and multiple sourcetypes. Hostname is the common.. I will to bring all possible information of that host from all ST.&lt;/P&gt;

&lt;P&gt;index=I1 ST=S1&lt;BR /&gt;
index-I2 ST=S2, ST=S3,ST=S4,ST=S5&lt;/P&gt;

&lt;P&gt;Sourcetype= S2 to S5 belongs to same Index=I2&lt;/P&gt;

&lt;P&gt;Things I tried&lt;/P&gt;

&lt;H1&gt;1&lt;/H1&gt;

&lt;P&gt;(index=I1 OR index=I2) (ST=S1 OR ST=S2 OR ST=S3)&lt;BR /&gt;
|fields &lt;/P&gt;

&lt;P&gt;Didnt worked&lt;/P&gt;

&lt;H1&gt;2&lt;/H1&gt;

&lt;P&gt;|multisearch&lt;BR /&gt;
[search index=I1 ST=S]&lt;BR /&gt;
[search index=I2 (ST=S1 OR ST=S2 ...]&lt;/P&gt;

&lt;P&gt;didnt worked&lt;/P&gt;

&lt;H1&gt;3 |multisearch&lt;/H1&gt;

&lt;P&gt;[search index=I1 ST=S]&lt;BR /&gt;
[search index=I2 ST=S2]&lt;BR /&gt;
[search index=I2 ST=S3]&lt;/P&gt;

&lt;P&gt;taking a lottt lottt time &lt;/P&gt;

&lt;P&gt;What am i missing here.. what is the best approach to join two different index and one index having multiple Sourcetypes?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 18:09:07 GMT</pubDate>
    <dc:creator>krishdeesplunk</dc:creator>
    <dc:date>2019-09-10T18:09:07Z</dc:date>
    <item>
      <title>Joining Multiple index and sourcetypes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475095#M8179</link>
      <description>&lt;P&gt;I have two index and multiple sourcetypes. Hostname is the common.. I will to bring all possible information of that host from all ST.&lt;/P&gt;

&lt;P&gt;index=I1 ST=S1&lt;BR /&gt;
index-I2 ST=S2, ST=S3,ST=S4,ST=S5&lt;/P&gt;

&lt;P&gt;Sourcetype= S2 to S5 belongs to same Index=I2&lt;/P&gt;

&lt;P&gt;Things I tried&lt;/P&gt;

&lt;H1&gt;1&lt;/H1&gt;

&lt;P&gt;(index=I1 OR index=I2) (ST=S1 OR ST=S2 OR ST=S3)&lt;BR /&gt;
|fields &lt;/P&gt;

&lt;P&gt;Didnt worked&lt;/P&gt;

&lt;H1&gt;2&lt;/H1&gt;

&lt;P&gt;|multisearch&lt;BR /&gt;
[search index=I1 ST=S]&lt;BR /&gt;
[search index=I2 (ST=S1 OR ST=S2 ...]&lt;/P&gt;

&lt;P&gt;didnt worked&lt;/P&gt;

&lt;H1&gt;3 |multisearch&lt;/H1&gt;

&lt;P&gt;[search index=I1 ST=S]&lt;BR /&gt;
[search index=I2 ST=S2]&lt;BR /&gt;
[search index=I2 ST=S3]&lt;/P&gt;

&lt;P&gt;taking a lottt lottt time &lt;/P&gt;

&lt;P&gt;What am i missing here.. what is the best approach to join two different index and one index having multiple Sourcetypes?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 18:09:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475095#M8179</guid>
      <dc:creator>krishdeesplunk</dc:creator>
      <dc:date>2019-09-10T18:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Multiple index and sourcetypes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475096#M8180</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
You could use the &lt;STRONG&gt;| join&lt;/STRONG&gt; command to achieve that result. &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Alternatively, you could also have a look at *&lt;EM&gt;| append *&lt;/EM&gt; command to achieve similar results based on your use case.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Append"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Append&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 19:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475096#M8180</guid>
      <dc:creator>mguhad</dc:creator>
      <dc:date>2019-09-10T19:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Multiple index and sourcetypes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475097#M8181</link>
      <description>&lt;P&gt;@mguhad  Thanks for the Answer.&lt;BR /&gt;
Using join will be very costly for this search i guess.. let me try&lt;/P&gt;

&lt;P&gt;in Index 2 i have 8 different sourcetypes &lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 20:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475097#M8181</guid>
      <dc:creator>krishdeesplunk</dc:creator>
      <dc:date>2019-09-10T20:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Multiple index and sourcetypes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475098#M8182</link>
      <description>&lt;P&gt;&lt;CODE&gt;(index=I1 sourcetype=S1) OR (index=I2 (sourcetype=S2 OR sourcetype=S3 OR sourcetype=S4 OR sourcetype=S5))&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 21:03:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475098#M8182</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-09-10T21:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Multiple index and sourcetypes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475099#M8183</link>
      <description>&lt;P&gt;perhaps you could to to one index, say the one with 8 sourcetypes...search it &lt;CODE&gt;index=1 sourcetype=s1 OR sourcetype=s2.... OR sourcetype=s8&lt;/CODE&gt; &lt;BR /&gt;
once you get that data, &lt;STRONG&gt;tag&lt;/STRONG&gt;* it or create an &lt;STRONG&gt;eventtype&lt;/STRONG&gt; that holds that data &amp;amp; thus will be able to combine the two indexes easily now that you have taken care of the index with many sourcetypes by assigning a &lt;STRONG&gt;tag&lt;/STRONG&gt; or &lt;STRONG&gt;eventtype&lt;/STRONG&gt; to the index with many sourcetypes&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 21:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Joining-Multiple-index-and-sourcetypes/m-p/475099#M8183</guid>
      <dc:creator>mguhad</dc:creator>
      <dc:date>2019-09-11T21:03:34Z</dc:date>
    </item>
  </channel>
</rss>

