<?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: Evalute results based on like-fields from two different indexes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292015#M88189</link>
    <description>&lt;P&gt;@jl19 - that's sometimes how it works.  A lot of questions in splunk are largely answered by pulling out all the complications already introduced, and doing simple respecifications that start at the record level.  Glad it worked out.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 22:46:25 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-08-16T22:46:25Z</dc:date>
    <item>
      <title>Evalute results based on like-fields from two different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292011#M88185</link>
      <description>&lt;P&gt;I have entries in IndexA that I want to find failures for. However, if IndexB has an entry with the same field and is a  'success' entry then I want to exclude it from the results entirely.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
&lt;STRONG&gt;IndexA&lt;/STRONG&gt;&lt;BR /&gt;
Entry1&lt;BR /&gt;
- Result: Failure&lt;BR /&gt;
- ID: 1&lt;BR /&gt;
Entry2&lt;BR /&gt;
- Result: Failure&lt;BR /&gt;
- ID: 2&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;IndexB&lt;/STRONG&gt;&lt;BR /&gt;
Entry1&lt;BR /&gt;
- Result: Success&lt;BR /&gt;
- ID: 1&lt;/P&gt;

&lt;P&gt;The search would only return Entry2 from IndexA in this scenario because ID:1 exists in both A and B so Entry1 was excluded. I can't figure out how to get these to properly exclude based on results from IndexB. I've been attempting sub-searches and joins but the results aren't coming through.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 19:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292011#M88185</guid>
      <dc:creator>jl19</dc:creator>
      <dc:date>2017-08-16T19:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Evalute results based on like-fields from two different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292012#M88186</link>
      <description>&lt;P&gt;There are tons of ways, depending on the data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="A" "Failure")  OR (index="B" "Success")
| rename COMMENT as "limit the records to the fields that we need."
| fields index ID fieldA1 fieldA2 fieldA3 fieldA4

| rename COMMENT as "now mark every record with all the indexes found for that ID"
| eventstats values(index) as foundboth by ID

| rename COMMENT as "and kill all the records that have a B index"
| where index="A" AND mvcount(foundboth)=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 21:20:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292012#M88186</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-16T21:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Evalute results based on like-fields from two different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292013#M88187</link>
      <description>&lt;P&gt;@jl19 - if this solved your issue, then please accept the answer so it will show closed.  If not, please feel free to ask for more information here.  Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 21:42:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292013#M88187</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-16T21:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Evalute results based on like-fields from two different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292014#M88188</link>
      <description>&lt;P&gt;I had to tweak it a little more for my use case but this got me through the wall I was hitting. Thank you very much for your help! This was great!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 22:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292014#M88188</guid>
      <dc:creator>jl19</dc:creator>
      <dc:date>2017-08-16T22:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Evalute results based on like-fields from two different indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292015#M88189</link>
      <description>&lt;P&gt;@jl19 - that's sometimes how it works.  A lot of questions in splunk are largely answered by pulling out all the complications already introduced, and doing simple respecifications that start at the record level.  Glad it worked out.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 22:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evalute-results-based-on-like-fields-from-two-different-indexes/m-p/292015#M88189</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-16T22:46:25Z</dc:date>
    </item>
  </channel>
</rss>

