<?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: Is it possible to exclude search results with two lookup files? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486192#M136033</link>
    <description>&lt;P&gt;Thank you for helping me. I see.  I need search command. Thank you so much!!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 05:41:29 GMT</pubDate>
    <dc:creator>subachu</dc:creator>
    <dc:date>2019-09-27T05:41:29Z</dc:date>
    <item>
      <title>Is it possible to exclude search results with two lookup files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486189#M136030</link>
      <description>&lt;P&gt;Hi,all&lt;/P&gt;

&lt;P&gt;I'm sorry but I use lookup for the first  time.&lt;BR /&gt;
Is it possible to exclude search results with two lookup files?&lt;/P&gt;

&lt;P&gt;Create a host name lookup file. (HOST.csv)&lt;BR /&gt;
Create a lookup file for the service name. (NAME.csv)&lt;/P&gt;

&lt;P&gt;First, exclude the hostname first.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = main source = host NOT [| inputlookup HOST.csv]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What type of search statement would you like to exclude further service names from this search result?&lt;/P&gt;

&lt;P&gt;I thought like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index = main source = host NOT [| inputlookup HOST.csv]) NOT [inputlookup NAME.csv]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could you help me?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 01:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486189#M136030</guid>
      <dc:creator>subachu</dc:creator>
      <dc:date>2019-09-26T01:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to exclude search results with two lookup files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486190#M136031</link>
      <description>&lt;P&gt;I noticed that your second &lt;CODE&gt;inputlookup&lt;/CODE&gt; did not have a pipe. You might want to try doing 2 pipes of &lt;CODE&gt;search&lt;/CODE&gt; such as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main
| search NOT [|inputlookup HOST.csv]
| search NOT [|inputlookup NAME.csv]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Sep 2019 01:41:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486190#M136031</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2019-09-26T01:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to exclude search results with two lookup files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486191#M136032</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index = main source = host 
     NOT [| inputlookup HOST.csv] 
     NOT [| inputlookup NAME.csv]
↓
index=main source=host  NOT ( host=X OR host=y OR host=Z ) AND NOT (name=X OR name=y OR name=Z)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Sep 2019 02:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486191#M136032</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-09-26T02:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to exclude search results with two lookup files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486192#M136033</link>
      <description>&lt;P&gt;Thank you for helping me. I see.  I need search command. Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 05:41:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-exclude-search-results-with-two-lookup-files/m-p/486192#M136033</guid>
      <dc:creator>subachu</dc:creator>
      <dc:date>2019-09-27T05:41:29Z</dc:date>
    </item>
  </channel>
</rss>

