<?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: Left join - find missing data from second index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538948#M152409</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;No this returns only the raw events, not in a table format.&lt;/P&gt;&lt;P&gt;I tried moving |table outside the [ ] but this returns data that exist in both indexes, just not showing the data from index B.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 09:14:50 GMT</pubDate>
    <dc:creator>mattiasrs</dc:creator>
    <dc:date>2021-02-08T09:14:50Z</dc:date>
    <item>
      <title>Left join - find missing data from second index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538748#M152328</link>
      <description>&lt;P&gt;Hello, I am quite new to Splunk and this is my first post. Hoping that I can get some help from this awesome community.&lt;/P&gt;&lt;P&gt;I have two systems, System A and System B. System A receives customer information which is then sent to System B . The data in both systems have the exact same fields and a unique Customer ID with the same name in both systems.&lt;/P&gt;&lt;P&gt;I want to create a dashboard where I can select a time period and see only problematic customers that only exist in System A, meaning they haven't been sent to System B for some reason.&lt;/P&gt;&lt;P&gt;This is my search to see all the data:&lt;/P&gt;&lt;P&gt;index=systemA OR index=systemB&lt;/P&gt;&lt;P&gt;| fields customer_ID, systemA_Timestamp, systemB_Timestamp&lt;/P&gt;&lt;P&gt;| stats values(*) as * by customer_ID&lt;/P&gt;&lt;P&gt;| table customer_ID, systemA_Timestamp, systemB_Timestamp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to summarize, I want to see customer_IDs that only exist in System A. I am not sure which function to use here. I have been experimenting with isnull(systemB_Timestamp) with no success. Join is not an option as the limit of 50 000 might be a problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be very grateful for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 11:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538748#M152328</guid>
      <dc:creator>mattiasrs</dc:creator>
      <dc:date>2021-02-05T11:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Left join - find missing data from second index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538800#M152347</link>
      <description>&lt;P&gt;Please check if the below query works.&lt;/P&gt;&lt;P&gt;index=&lt;SPAN&gt;systemA&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;NOT [search index=&lt;SPAN&gt;systemB&lt;/SPAN&gt; | stats count by &lt;SPAN&gt;customer_ID&amp;nbsp;&lt;/SPAN&gt;| table &lt;SPAN&gt;customer_ID&lt;/SPAN&gt;]&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 17:06:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538800#M152347</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-02-05T17:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Left join - find missing data from second index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538948#M152409</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;No this returns only the raw events, not in a table format.&lt;/P&gt;&lt;P&gt;I tried moving |table outside the [ ] but this returns data that exist in both indexes, just not showing the data from index B.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 09:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538948#M152409</guid>
      <dc:creator>mattiasrs</dc:creator>
      <dc:date>2021-02-08T09:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Left join - find missing data from second index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538949#M152410</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=systemA OR index=systemB
| fields customer_ID, systemA_Timestamp, systemB_Timestamp
| stats values(*) as * by customer_ID
| fillnull value="NotPresent" systemB_Timestamp
| where systemB_Timestamp="NotPresent"
| table customer_ID, systemA_Timestamp, systemB_Timestamp&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Feb 2021 09:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538949#M152410</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-08T09:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Left join - find missing data from second index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538975#M152427</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is the table command outside gives still raw events of both the index.&lt;/P&gt;&lt;P&gt;index=systemA NOT [search index=systemB | stats count by customer_ID | table customer_ID] | table customer_ID, systemA_Timestamp&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 11:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538975#M152427</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-02-08T11:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Left join - find missing data from second index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538976#M152428</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;With this I am able to achieve what I want.&lt;/P&gt;&lt;P&gt;Do you know if this is best practice?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 11:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538976#M152428</guid>
      <dc:creator>mattiasrs</dc:creator>
      <dc:date>2021-02-08T11:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Left join - find missing data from second index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538979#M152431</link>
      <description>&lt;P&gt;I guess that might depend on what your actual data looks like and what your criteria for determining "best" is. Using stats is usually better than join, fillnull should be reasonably inexpensive as it can be done in-stream / in parallel, same goes for the where clause.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 11:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538979#M152431</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-08T11:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Left join - find missing data from second index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538980#M152432</link>
      <description>&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 11:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Left-join-find-missing-data-from-second-index/m-p/538980#M152432</guid>
      <dc:creator>mattiasrs</dc:creator>
      <dc:date>2021-02-08T11:47:49Z</dc:date>
    </item>
  </channel>
</rss>

