<?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 develop a search to find what is NOT in a lookup table with another lookup comparison? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288268#M87265</link>
    <description>&lt;P&gt;If you want to search index=foo for anything that matches lookup1, but remove any results from lookup2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo [ | inputlookup lookup1 | format ] | search NOT [| inputlookup lookup2 | format ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you're just trying to get results from index=foo, excluding anything from lookup2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=full NOT [ | inputlookup lookup2 | format ] | ....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 May 2017 19:20:59 GMT</pubDate>
    <dc:creator>wenthold</dc:creator>
    <dc:date>2017-05-11T19:20:59Z</dc:date>
    <item>
      <title>How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288262#M87259</link>
      <description>&lt;P&gt;I have two lookup tables and I want to search what is NOT in lookup2 but in lookup1.&lt;/P&gt;

&lt;P&gt;I have tried:&lt;BR /&gt;
&lt;CODE&gt;... NOT [|inputlookup lookup2 ....]&lt;/CODE&gt;  &lt;/P&gt;

&lt;P&gt;So overall I have something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo NOT [| inputlookup lookup2]
| lookup lookup1 fieldA
|... rest of search ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But nothing works.  Any tips?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 15:19:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288262#M87259</guid>
      <dc:creator>mgrosholz</dc:creator>
      <dc:date>2017-05-11T15:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288263#M87260</link>
      <description>&lt;P&gt;Try like this (assuming the field name that is common in all is fieldA)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo [| inputlookup lookup1.csv | search NOT [| inputlookup lookup2.csv | table fieldA]]
|...rest of the search
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2017 16:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288263#M87260</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-11T16:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288264#M87261</link>
      <description>&lt;P&gt;It doesn't pull anything.  Checked the lookup, it was empty.  So it should spit out results.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288264#M87261</guid>
      <dc:creator>mgrosholz</dc:creator>
      <dc:date>2017-05-11T18:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288265#M87262</link>
      <description>&lt;P&gt;I have been using the lookup command for lookup1 and it works great.  I can read, compare, and pull fields.  But I can't figure out how to say ignore lookup2 events.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288265#M87262</guid>
      <dc:creator>mgrosholz</dc:creator>
      <dc:date>2017-05-11T18:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288266#M87263</link>
      <description>&lt;P&gt;There is confusion with the title.  The first lookup should not affect the second lookup.  &lt;/P&gt;

&lt;P&gt;I am looking at lookup1 and getting results.  Then I am saying do not look at events that match lookup2.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288266#M87263</guid>
      <dc:creator>mgrosholz</dc:creator>
      <dc:date>2017-05-11T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288267#M87264</link>
      <description>&lt;P&gt;The subsearch &lt;CODE&gt;| inputlookup lookup1.csv | search NOT [| inputlookup lookup2.csv | table fieldA]&lt;/CODE&gt; is suppose to give you events from lookup1 which are not in lookup2 (based on fieldA comparision). I would just run that first, validate the results and then add to your main search.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288267#M87264</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-11T18:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288268#M87265</link>
      <description>&lt;P&gt;If you want to search index=foo for anything that matches lookup1, but remove any results from lookup2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo [ | inputlookup lookup1 | format ] | search NOT [| inputlookup lookup2 | format ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you're just trying to get results from index=foo, excluding anything from lookup2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=full NOT [ | inputlookup lookup2 | format ] | ....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2017 19:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288268#M87265</guid>
      <dc:creator>wenthold</dc:creator>
      <dc:date>2017-05-11T19:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288269#M87266</link>
      <description>&lt;P&gt;No results with just the subsearch.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 20:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288269#M87266</guid>
      <dc:creator>mgrosholz</dc:creator>
      <dc:date>2017-05-11T20:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288270#M87267</link>
      <description>&lt;P&gt;More clarification:&lt;BR /&gt;
lookup1 and lookup2 have different fields respectively.  &lt;/P&gt;

&lt;P&gt;The goal is to:&lt;BR /&gt;
- Have events from index=foo...&lt;BR /&gt;
- Show only events that match fieldA in lookup1...&lt;BR /&gt;
- Output fieldB and fieldC from lookup1...&lt;BR /&gt;
- Remove events (or not see) that match fieldX, fieldY, and fieldZ in lookup2...&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 15:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288270#M87267</guid>
      <dc:creator>mgrosholz</dc:creator>
      <dc:date>2017-05-14T15:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a search to find what is NOT in a lookup table with another lookup comparison?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288271#M87268</link>
      <description>&lt;P&gt;Hi mgrosholz,&lt;BR /&gt;
Can you please try this one??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo NOT [| inputlookup lookup2 | return fieldX fieldY fieldZ ] [| inputlookup fieldA | return fieldA ]
|... rest of search ..
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here, I have used return command. For more info please check below URL.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.3/SearchReference/Return"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.3/SearchReference/Return&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Kamlesh&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 13:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-search-to-find-what-is-NOT-in-a-lookup-table/m-p/288271#M87268</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-05-16T13:10:36Z</dc:date>
    </item>
  </channel>
</rss>

