<?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 do I use the join command to detect if an item is in one list and not another? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379229#M111126</link>
    <description>&lt;P&gt;can't see that button sorry,I don't have such button, sorry&lt;/P&gt;</description>
    <pubDate>Wed, 07 Nov 2018 15:33:38 GMT</pubDate>
    <dc:creator>ESMaletMa</dc:creator>
    <dc:date>2018-11-07T15:33:38Z</dc:date>
    <item>
      <title>How do I use the join command to detect if an item is in one list and not another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379225#M111122</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I need your help for the following: &lt;/P&gt;

&lt;P&gt;I have 2 lists: I want to detect when an item is in the list B and NOT in the A &lt;/P&gt;

&lt;P&gt;List A: static (from a lookup)&lt;BR /&gt;
ListB: Dynamic (from a search)&lt;/P&gt;

&lt;P&gt;list A:&lt;BR /&gt;&lt;BR /&gt;
1&lt;BR /&gt;&lt;BR /&gt;
2&lt;BR /&gt;&lt;BR /&gt;
3         &lt;/P&gt;

&lt;P&gt;List B:&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;/P&gt;

&lt;P&gt;Result: 4&lt;/P&gt;

&lt;P&gt;I do NOT want to detect the oposite when someting is in A and is NOT in B&lt;/P&gt;

&lt;P&gt;list A:&lt;BR /&gt;&lt;BR /&gt;
1&lt;BR /&gt;&lt;BR /&gt;
2&lt;BR /&gt;&lt;BR /&gt;
3&lt;BR /&gt;&lt;BR /&gt;
4           &lt;/P&gt;

&lt;P&gt;list B:&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;/P&gt;

&lt;P&gt;Result: None&lt;/P&gt;

&lt;P&gt;I tried all the posibilites with "join" command "inner" and "outer" but no luck&lt;/P&gt;

&lt;P&gt;thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 14:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379225#M111122</guid>
      <dc:creator>ESMaletMa</dc:creator>
      <dc:date>2018-11-07T14:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the join command to detect if an item is in one list and not another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379226#M111123</link>
      <description>&lt;P&gt;@ESMaletMa,&lt;/P&gt;

&lt;P&gt;Assuming the fieldname as FIELD1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Your dynamic search to get list B with field FIELD1" 
|lookup "list  A lookup file" FIELD1 OUTPUT "other fields from lookup lets say FIELD2" 
|search NOT FIELD2="*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "Your dynamic search to get list B with field FIELD1" |fields FIELD1 
 |search NOT [|inputlookup "list  A lookup file"|fields FIELD1]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run anywhere example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults |eval country="Australia,NOT_A_COUNTRY"|makemv country delim=","|mvexpand country
|search NOT [inputlookup geo_attr_countries.csv |fields country]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Nov 2018 15:00:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379226#M111123</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-07T15:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the join command to detect if an item is in one list and not another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379227#M111124</link>
      <description>&lt;P&gt;It worked, thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 15:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379227#M111124</guid>
      <dc:creator>ESMaletMa</dc:creator>
      <dc:date>2018-11-07T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the join command to detect if an item is in one list and not another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379228#M111125</link>
      <description>&lt;P&gt;@ESMaletMa, you are welcome. Please "accept" by clicking on the Accept button to close the thread. thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 15:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379228#M111125</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-07T15:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the join command to detect if an item is in one list and not another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379229#M111126</link>
      <description>&lt;P&gt;can't see that button sorry,I don't have such button, sorry&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 15:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379229#M111126</guid>
      <dc:creator>ESMaletMa</dc:creator>
      <dc:date>2018-11-07T15:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the join command to detect if an item is in one list and not another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379230#M111127</link>
      <description>&lt;P&gt;@ESMaletMa, just below the answer - beside Add Comment  "Accept"&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 05:40:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379230#M111127</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-08T05:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the join command to detect if an item is in one list and not another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379231#M111128</link>
      <description>&lt;P&gt;done! Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 07:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-join-command-to-detect-if-an-item-is-in-one/m-p/379231#M111128</guid>
      <dc:creator>ESMaletMa</dc:creator>
      <dc:date>2018-11-08T07:36:22Z</dc:date>
    </item>
  </channel>
</rss>

