<?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: comparing two fields from different indexes in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/comparing-two-fields-from-different-indexes/m-p/298015#M2632</link>
    <description>&lt;P&gt;@deepak007, you should ideally create a &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addaliasestofields"&gt;Field Alias&lt;/A&gt; so that the field name becomes the same in both indexes and can be used for correlation.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 04:45:36 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-02-19T04:45:36Z</dc:date>
    <item>
      <title>comparing two fields from different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/comparing-two-fields-from-different-indexes/m-p/298013#M2630</link>
      <description>&lt;P&gt;I have 2 indexes which have common values in their fields&lt;BR /&gt;
index1 has a field dest containing few values which are matching to index2 DESTIP&lt;BR /&gt;
need to create a search query for getting the values only for the matching value of &lt;BR /&gt;
index1 dest and index2 DESTIP&lt;/P&gt;

&lt;P&gt;I tried&lt;BR /&gt;
index=index1 OR index=index2 |eval destination=coalesce(dest, DESTIP)| table destination, app&lt;BR /&gt;
and its not working&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 01:06:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/comparing-two-fields-from-different-indexes/m-p/298013#M2630</guid>
      <dc:creator>deepak007</dc:creator>
      <dc:date>2018-02-19T01:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two fields from different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/comparing-two-fields-from-different-indexes/m-p/298014#M2631</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 OR index=index2| eval destination=case(isnotnull(dest), dest, isnotnull(DESTIP), DESTIP, 1=1, "unknown")| stats values(*) AS * by destination
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 OR index=index2 |eval destination=coalesce(dest, DESTIP)| stats values(*) AS * by destination
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Feb 2018 03:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/comparing-two-fields-from-different-indexes/m-p/298014#M2631</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-19T03:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two fields from different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/comparing-two-fields-from-different-indexes/m-p/298015#M2632</link>
      <description>&lt;P&gt;@deepak007, you should ideally create a &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addaliasestofields"&gt;Field Alias&lt;/A&gt; so that the field name becomes the same in both indexes and can be used for correlation.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 04:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/comparing-two-fields-from-different-indexes/m-p/298015#M2632</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-02-19T04:45:36Z</dc:date>
    </item>
  </channel>
</rss>

