<?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: Why am I getting &amp;quot;Error in 'inputlookup' command: Invalid argument: 'NOT'.&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227024#M67001</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Your Base Search With 70 Values Here&amp;gt; NOT [|inputlookup &amp;lt;YouLookupDefinitionNameHere&amp;gt; | fields &amp;lt;YourFieldNameHere&amp;gt;]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Jun 2016 04:06:22 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-06-24T04:06:22Z</dc:date>
    <item>
      <title>Why am I getting "Error in 'inputlookup' command: Invalid argument: 'NOT'."?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227023#M67000</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;Just checking to see if this is possible or If I'm running into a limitation I didn't know about...&lt;BR /&gt;
I have a very simple "source of truth" .csv file used as a lookup file. It has a single field with about 70 unique values. I am trying to compare that against a single field with about 60 of the same unique values in an index. I need remove the 60 values in the index from the 70 values in the lookup table so that only the 10 values that are not in the index remain. I had tried by using a simple &lt;CODE&gt;|inputlookup NOT index field value NOT index field value NOT index field value&lt;/CODE&gt; etc, but I am getting the error: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'inputlookup' command: Invalid argument: 'NOT'.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm guessing you can't NOT a lookup table. Is there some other equivalent command we can use for a lookup table?&lt;BR /&gt;
Alternately, is there a way for me to accomplish this outside of a simple NOT statement?&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227023#M67000</guid>
      <dc:creator>lbogle</dc:creator>
      <dc:date>2016-06-24T03:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting "Error in 'inputlookup' command: Invalid argument: 'NOT'."?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227024#M67001</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Your Base Search With 70 Values Here&amp;gt; NOT [|inputlookup &amp;lt;YouLookupDefinitionNameHere&amp;gt; | fields &amp;lt;YourFieldNameHere&amp;gt;]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jun 2016 04:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227024#M67001</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-24T04:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting "Error in 'inputlookup' command: Invalid argument: 'NOT'."?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227025#M67002</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup lookupfile.csv | search NOT [search index=baseindex | stats count by matchingfield | fields - count ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jun 2016 13:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227025#M67002</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-24T13:40:19Z</dc:date>
    </item>
  </channel>
</rss>

