<?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: Lookup - How to compare and remove events from the search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265933#M79941</link>
    <description>&lt;P&gt;I Got it:&lt;/P&gt;

&lt;P&gt;index="Servers" NOT [|inputlookup lookup_name | fields Server_Name] |table Server_Name&lt;/P&gt;

&lt;P&gt;First you need to import the .csv file on Settings --&amp;gt; Lookups --&amp;gt; Add New --&amp;gt; Lookup File and the Lookup Definition&lt;/P&gt;

&lt;P&gt;The important thing is: the field name must be the same.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:29:39 GMT</pubDate>
    <dc:creator>bruno_eduardo</dc:creator>
    <dc:date>2020-09-29T07:29:39Z</dc:date>
    <item>
      <title>Lookup - How to compare and remove events from the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265928#M79936</link>
      <description>&lt;P&gt;I need to remove a list of servers from my search. This list changes once a month so I thought of using a lookup table. Is it possible? How can I do it?&lt;/P&gt;

&lt;P&gt;So in my index, there is a field &lt;STRONG&gt;Server_Name&lt;/STRONG&gt;, and on my lookup table there is a field &lt;STRONG&gt;Server_Name_To_Be_Removed&lt;/STRONG&gt;. What I need is to compare both fields and remove the events that match value of this field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index=Servers    MyBaseSearch   NOT Compared_Equal_Server_Name_To_Be_Removed=Yes
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265928#M79936</guid>
      <dc:creator>bruno_eduardo</dc:creator>
      <dc:date>2020-09-29T07:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - How to compare and remove events from the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265929#M79937</link>
      <description>&lt;P&gt;Take a look at&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/93488/how-to-use-lookup-to-exclude-a-list-of-user-names-and-service-file-names.html"&gt;http://answers.splunk.com/answers/93488/how-to-use-lookup-to-exclude-a-list-of-user-names-and-service-file-names.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/65646/how-to-use-a-lookup-csv-to-exclude-items-from-a-search.html"&gt;http://answers.splunk.com/answers/65646/how-to-use-a-lookup-csv-to-exclude-items-from-a-search.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Use a NOT with the sub-search on the inputfile with the server names.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265929#M79937</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2015-10-07T14:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - How to compare and remove events from the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265930#M79938</link>
      <description>&lt;P&gt;Sorry, but I still can't do it, there was no accepted answer on those posts.&lt;/P&gt;

&lt;P&gt;What I am trying to do is: &lt;/P&gt;

&lt;P&gt;index=* |fields Server_Name  NOT [|inputlookup LookUpTable.csv append=f| fields Server_Name_To_Be_Removed] |Table Server_Name&lt;/P&gt;

&lt;P&gt;But is not working&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265930#M79938</guid>
      <dc:creator>bruno_eduardo</dc:creator>
      <dc:date>2020-09-29T07:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - How to compare and remove events from the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265931#M79939</link>
      <description>&lt;P&gt;What does the job inspector say?  &lt;/P&gt;

&lt;P&gt;It should show the expanded search that your subsearch creates.&lt;/P&gt;

&lt;P&gt;Also, check that your lookupfile has been uploaded with the correct application context. Make sure that using &amp;lt;|inputlookup table&amp;gt; on its own gives you the contents of the lookup.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 04:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265931#M79939</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2015-10-08T04:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - How to compare and remove events from the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265932#M79940</link>
      <description>&lt;P&gt;Check the field name in the lookup table. If it's same as as the field name available in base search (Server_Name) then add a rename command in your subsearch after fields command.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 06:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265932#M79940</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-08T06:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - How to compare and remove events from the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265933#M79941</link>
      <description>&lt;P&gt;I Got it:&lt;/P&gt;

&lt;P&gt;index="Servers" NOT [|inputlookup lookup_name | fields Server_Name] |table Server_Name&lt;/P&gt;

&lt;P&gt;First you need to import the .csv file on Settings --&amp;gt; Lookups --&amp;gt; Add New --&amp;gt; Lookup File and the Lookup Definition&lt;/P&gt;

&lt;P&gt;The important thing is: the field name must be the same.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265933#M79941</guid>
      <dc:creator>bruno_eduardo</dc:creator>
      <dc:date>2020-09-29T07:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup - How to compare and remove events from the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265934#M79942</link>
      <description>&lt;P&gt;It worked, thank you for your help.  &lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 19:10:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-How-to-compare-and-remove-events-from-the-search/m-p/265934#M79942</guid>
      <dc:creator>jeffsegal</dc:creator>
      <dc:date>2018-05-09T19:10:27Z</dc:date>
    </item>
  </channel>
</rss>

