<?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: Get different element between 2 sources with join or other command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-different-element-between-2-sources-with-join-or-other/m-p/206618#M60179</link>
    <description>&lt;P&gt;Try something this. This should return everything from new, that does not have a corresponding "matchingfield" in historical &lt;/P&gt;

&lt;P&gt;index=new NOT [ search index=historical | table matchingfield]&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2016 12:50:17 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-08-05T12:50:17Z</dc:date>
    <item>
      <title>Get different element between 2 sources with join or other command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-different-element-between-2-sources-with-join-or-other/m-p/206617#M60178</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I have 2 sources, historical and current, i need to catch the new events in my monitor, so i compare current with historical, i cant match the persistents events but no the new&lt;/P&gt;

&lt;P&gt;Any help with join o command that can do this?&lt;/P&gt;

&lt;P&gt;Thanks, Buscatrufas.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 08:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-different-element-between-2-sources-with-join-or-other/m-p/206617#M60178</guid>
      <dc:creator>Buscatrufas</dc:creator>
      <dc:date>2016-08-05T08:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get different element between 2 sources with join or other command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-different-element-between-2-sources-with-join-or-other/m-p/206618#M60179</link>
      <description>&lt;P&gt;Try something this. This should return everything from new, that does not have a corresponding "matchingfield" in historical &lt;/P&gt;

&lt;P&gt;index=new NOT [ search index=historical | table matchingfield]&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 12:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-different-element-between-2-sources-with-join-or-other/m-p/206618#M60179</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-05T12:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get different element between 2 sources with join or other command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-different-element-between-2-sources-with-join-or-other/m-p/206619#M60180</link>
      <description>&lt;P&gt;Assuming there is some kind of identifier, you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo (source=historical OR source=new) | stats values(source) as sources by identifier | search NOT sources=historical
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That would give you a list of identifiers that are present in the new source, but weren't present in the historical source.&lt;BR /&gt;
This search is fairly generic, if you want more specific help you'll have to provide more specific details about your events.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 12:53:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-different-element-between-2-sources-with-join-or-other/m-p/206619#M60180</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-08-05T12:53:41Z</dc:date>
    </item>
  </channel>
</rss>

