<?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 Query question between 2 indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-question-between-2-indexes/m-p/507493#M141883</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Can i check how can i craft the query given the following condition.&lt;/P&gt;&lt;P&gt;I have 2 indexes&amp;nbsp;IndexA and IndexB with the following filed in each index.&lt;/P&gt;&lt;P&gt;Example as follows :&lt;/P&gt;&lt;P&gt;IndexA&lt;/P&gt;&lt;P&gt;Field contains :&lt;/P&gt;&lt;P&gt;srcIP = 10.10.10.10&lt;BR /&gt;cat = malicious IP 100%&lt;/P&gt;&lt;P&gt;IndexB&lt;/P&gt;&lt;P&gt;Field contains&amp;nbsp; :&lt;/P&gt;&lt;P&gt;TrueClientIP = 10.10.10.10&lt;/P&gt;&lt;P&gt;The objective of my query is to compare "TrueClientIP" under Index B against "srcIP" under IndexA and the condition that if the "cat" field under IndexA is tag under malicious IP it will return me the count .&lt;/P&gt;&lt;P&gt;How can i craft the above query ?&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 08:11:38 GMT</pubDate>
    <dc:creator>christay</dc:creator>
    <dc:date>2020-07-06T08:11:38Z</dc:date>
    <item>
      <title>Query question between 2 indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-question-between-2-indexes/m-p/507493#M141883</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Can i check how can i craft the query given the following condition.&lt;/P&gt;&lt;P&gt;I have 2 indexes&amp;nbsp;IndexA and IndexB with the following filed in each index.&lt;/P&gt;&lt;P&gt;Example as follows :&lt;/P&gt;&lt;P&gt;IndexA&lt;/P&gt;&lt;P&gt;Field contains :&lt;/P&gt;&lt;P&gt;srcIP = 10.10.10.10&lt;BR /&gt;cat = malicious IP 100%&lt;/P&gt;&lt;P&gt;IndexB&lt;/P&gt;&lt;P&gt;Field contains&amp;nbsp; :&lt;/P&gt;&lt;P&gt;TrueClientIP = 10.10.10.10&lt;/P&gt;&lt;P&gt;The objective of my query is to compare "TrueClientIP" under Index B against "srcIP" under IndexA and the condition that if the "cat" field under IndexA is tag under malicious IP it will return me the count .&lt;/P&gt;&lt;P&gt;How can i craft the above query ?&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 08:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-question-between-2-indexes/m-p/507493#M141883</guid>
      <dc:creator>christay</dc:creator>
      <dc:date>2020-07-06T08:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query question between 2 indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-question-between-2-indexes/m-p/507495#M141884</link>
      <description>&lt;P&gt;index=IndexA OR index=IndexB | eval ip=coalesce(srcIP,TrueClientIP) | rex field=cat "(?&amp;lt;malicious&amp;gt;malicious)" | stats count(malicious) by ip&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 08:28:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-question-between-2-indexes/m-p/507495#M141884</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-06T08:28:42Z</dc:date>
    </item>
  </channel>
</rss>

