<?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 to find data which does not exist in index1 when compare to index2? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/630014#M218867</link>
    <description>&lt;P&gt;Ah I omitted quotation marks in filter.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (index1, index2)
| eval field = coalesce(field1, field2) ``` common field name ```
| stats values(index) as indices by field ``` which index contains this value? ```
| where mvcount(indices) == 1 AND indices == "index1" ``` only appears in index1 ```&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 08 Feb 2023 04:58:09 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-02-08T04:58:09Z</dc:date>
    <item>
      <title>How to find data which does not exist in index1 when compare to index2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629222#M218565</link>
      <description>&lt;P&gt;I want to compare two index index1 and index2&amp;nbsp; and print values where index1 values does not exists in index2&lt;/P&gt;
&lt;P&gt;fro ex:&lt;/P&gt;
&lt;P&gt;Index1. index2&lt;/P&gt;
&lt;P&gt;field1.&amp;nbsp; &amp;nbsp; &amp;nbsp;field2&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;output&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 20:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629222#M218565</guid>
      <dc:creator>directtv999</dc:creator>
      <dc:date>2023-02-01T20:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: query to find data which does not exist in index1 when compare to index2</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629225#M218566</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;maybe this inner/outer join post helps you?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/What-is-the-relation-between-the-Splunk-inner-left-join-and-the/m-p/391288/thread-id/113948" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/What-is-the-relation-between-the-Splunk-inner-left-join-and-the/m-p/391288/thread-id/113948&lt;/A&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 20:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629225#M218566</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-02-01T20:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to find data which does not exist in index1 when compare to index2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629230#M218569</link>
      <description>&lt;P&gt;I wrote this query but not working as expected&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;=index1 OR &lt;/SPAN&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;=index2 | &lt;/SPAN&gt;&lt;SPAN class=""&gt;eval&lt;/SPAN&gt; &lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;==&lt;/SPAN&gt;&lt;SPAN class=""&gt;"index1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;) | stats &lt;/SPAN&gt;&lt;SPAN class=""&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(field1) as field1 by field2, &lt;/SPAN&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt; | &lt;/SPAN&gt;&lt;SPAN class=""&gt;join&lt;/SPAN&gt;&lt;SPAN&gt; type=left field1 [search &lt;/SPAN&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;=index1 OR &lt;/SPAN&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;=index2 | stats &lt;/SPAN&gt;&lt;SPAN class=""&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(field2) as field2 by field1, &lt;/SPAN&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;] | &lt;/SPAN&gt;&lt;SPAN class=""&gt;eval&lt;/SPAN&gt;&lt;SPAN&gt; missing=&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(isnull(field2), field1, &lt;/SPAN&gt;&lt;SPAN class=""&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;) | search missing!=&lt;/SPAN&gt;&lt;SPAN class=""&gt;""&lt;/SPAN&gt;&lt;SPAN&gt; | table field1 field2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN&gt; missing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 20:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629230#M218569</guid>
      <dc:creator>directtv999</dc:creator>
      <dc:date>2023-02-01T20:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to find data which does not exist in index1 when compare to index2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629307#M218606</link>
      <description>&lt;P&gt;Do you mean&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (index1, index2)
| eval field = coalesce(field1, field2) ``` common field name ```
| stats values(index) as indices by field ``` which index contains this value? ```
| where mvcount(indices) == 1 AND indices == index1 ``` only appears in index1 ```&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 09:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629307#M218606</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-02-02T09:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to find data which does not exist in index1 when compare to index2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629435#M218649</link>
      <description>&lt;P&gt;when compared field1 with field2, I need data of field1 which does not exist in field2.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 03:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629435#M218649</guid>
      <dc:creator>directtv999</dc:creator>
      <dc:date>2023-02-03T03:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to find data which does not exist in index1 when compare to index2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629459#M218666</link>
      <description>&lt;P&gt;Can you explain "data of field1"? &amp;nbsp;If you mean the value of field1, it is already coalesced into field. &amp;nbsp;If you prefer to have the name field1, you can just renamed it field1 after the where filter.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 08:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629459#M218666</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-02-03T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to find data which does not exist in index1 when compare to index2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629509#M218683</link>
      <description>&lt;P&gt;yes its value of the field how to print the values only exist in index1 just do table indices? its not giving any output&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/629509#M218683</guid>
      <dc:creator>directtv999</dc:creator>
      <dc:date>2023-02-03T14:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to find data which does not exist in index1 when compare to index2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/630014#M218867</link>
      <description>&lt;P&gt;Ah I omitted quotation marks in filter.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (index1, index2)
| eval field = coalesce(field1, field2) ``` common field name ```
| stats values(index) as indices by field ``` which index contains this value? ```
| where mvcount(indices) == 1 AND indices == "index1" ``` only appears in index1 ```&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 04:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-data-which-does-not-exist-in-index1-when-compare-to/m-p/630014#M218867</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-02-08T04:58:09Z</dc:date>
    </item>
  </channel>
</rss>

