<?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: How do I search from 2 different indexes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402892#M116554</link>
    <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=A OR index=B)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Feb 2019 13:10:53 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2019-02-20T13:10:53Z</dc:date>
    <item>
      <title>How do I search from 2 different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402891#M116553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How do I search in two indexes? I am looking for the IP address in both the indexes at that same point of time and correlate them.&lt;/P&gt;

&lt;P&gt;One index is firewall and other index is Microsoft ATA. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402891#M116553</guid>
      <dc:creator>ajayrejin</dc:creator>
      <dc:date>2019-02-20T07:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search from 2 different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402892#M116554</link>
      <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=A OR index=B)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402892#M116554</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-02-20T13:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search from 2 different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402893#M116555</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Okay.. That query would check either in A or B right. &lt;/P&gt;

&lt;P&gt;What  i am looking for here is, the IP is in both indexes and that IP is present in both indexes at the same time. I need to correlate them..&lt;BR /&gt;
Ex: IP in index 1 is seen @ 12 PM, then same IP is also seen @ 12PM  in index 2. How do i check this? If the IPs have seen @ same time.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402893#M116555</guid>
      <dc:creator>ajayrejin</dc:creator>
      <dc:date>2019-02-20T13:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search from 2 different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402894#M116556</link>
      <description>&lt;P&gt;Yes correct, this will search both indexes. If you want to coorelate between both indexes, you can use the search below to get you started. &lt;/P&gt;

&lt;P&gt;You will need to replace your index name and &lt;CODE&gt;srcip&lt;/CODE&gt; with the field-name of your IP value. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=A OR index=B)
| stats count earliest(_time) as _time by srcip
| where count &amp;gt;=2 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402894#M116556</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-02-20T15:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search from 2 different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402895#M116557</link>
      <description>&lt;P&gt;Thank you for the query. I tried that query, it gives me all the IPs from both the indexes. I wanted the common IP between the indexes&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402895#M116557</guid>
      <dc:creator>ajayrejin</dc:creator>
      <dc:date>2019-02-22T13:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search from 2 different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402896#M116558</link>
      <description>&lt;P&gt;Hi @ajayrejin , &lt;/P&gt;

&lt;P&gt;You can &lt;CODE&gt;join&lt;/CODE&gt; command if if you have common field in both the indexes.&lt;/P&gt;

&lt;P&gt;you can follow this doc for better reference.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Join"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Join&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;or you can use &lt;CODE&gt;transaction&lt;/CODE&gt; command&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Transaction"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;this might help you!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402896#M116558</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-02-22T15:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search from 2 different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402897#M116559</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;There is no common field in both the indexes.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 06:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-from-2-different-indexes/m-p/402897#M116559</guid>
      <dc:creator>ajayrejin</dc:creator>
      <dc:date>2019-02-25T06:17:41Z</dc:date>
    </item>
  </channel>
</rss>

