<?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 Exclude from search values from lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Exclude-from-search-values-from-lookup-table/m-p/380333#M111326</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a lookup table which i test it like this :&lt;BR /&gt;
|inputlookup approved_s3_buckets.csv &lt;/P&gt;

&lt;P&gt;and display the column : &lt;BR /&gt;
Bucket-Name&lt;BR /&gt;
bucketname1&lt;BR /&gt;
bucketname2&lt;BR /&gt;
.....&lt;BR /&gt;
bucketname50&lt;/P&gt;

&lt;P&gt;And i have a search which display me :&lt;BR /&gt;
Bucket-Name&lt;BR /&gt;
bucketname1&lt;BR /&gt;
bucketname2&lt;BR /&gt;
bucketname3 &lt;BR /&gt;
bucketname100 &lt;BR /&gt;
buketname535353&lt;/P&gt;

&lt;P&gt;I want to exclude from my search, the values of bucket names which are present into the lookup table  approved_s3_buckets.csv .&lt;BR /&gt;
(Something similar with Bucket-Name!=bucketname1 AND Bucket-Name!=bucketname2.... and so on)&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:52:30 GMT</pubDate>
    <dc:creator>braicu</dc:creator>
    <dc:date>2020-09-29T23:52:30Z</dc:date>
    <item>
      <title>Exclude from search values from lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-from-search-values-from-lookup-table/m-p/380333#M111326</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a lookup table which i test it like this :&lt;BR /&gt;
|inputlookup approved_s3_buckets.csv &lt;/P&gt;

&lt;P&gt;and display the column : &lt;BR /&gt;
Bucket-Name&lt;BR /&gt;
bucketname1&lt;BR /&gt;
bucketname2&lt;BR /&gt;
.....&lt;BR /&gt;
bucketname50&lt;/P&gt;

&lt;P&gt;And i have a search which display me :&lt;BR /&gt;
Bucket-Name&lt;BR /&gt;
bucketname1&lt;BR /&gt;
bucketname2&lt;BR /&gt;
bucketname3 &lt;BR /&gt;
bucketname100 &lt;BR /&gt;
buketname535353&lt;/P&gt;

&lt;P&gt;I want to exclude from my search, the values of bucket names which are present into the lookup table  approved_s3_buckets.csv .&lt;BR /&gt;
(Something similar with Bucket-Name!=bucketname1 AND Bucket-Name!=bucketname2.... and so on)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-from-search-values-from-lookup-table/m-p/380333#M111326</guid>
      <dc:creator>braicu</dc:creator>
      <dc:date>2020-09-29T23:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude from search values from lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-from-search-values-from-lookup-table/m-p/380334#M111327</link>
      <description>&lt;P&gt;hello there&lt;/P&gt;

&lt;P&gt;try this out:&lt;BR /&gt;
&lt;CODE&gt;... your search ... NOT [ |inputlookup approved_s3_buckets.csv | fields approved_s3_buckets.csv | dedup approved_s3_buckets.csv | table approved_s3_buckets.csv]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;for practice, try the following searches:&lt;BR /&gt;
first, create a small fruit basket lookup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1
| eval fruits = "apple,banana,orange,lemon"
| makemv delim="," fruits
| mvexpand fruits
| outputlookup fruits.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then check its there:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup fruits.csv&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;then add 2 extra fruits to the basket and verify they arent there:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1
| eval fruits = "apple,banana,orange,lemon,melon,watermelon"
| makemv delim="," fruits
| mvexpand fruits
| search fruits = * NOT [| inputlookup fruits.csv | fields fruits | dedup fruits | table fruits ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 00:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-from-search-values-from-lookup-table/m-p/380334#M111327</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-03-27T00:39:59Z</dc:date>
    </item>
  </channel>
</rss>

