<?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: compare multiple value in lookup to single value in index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592339#M206178</link>
    <description>&lt;P&gt;Exactly which fields do you have in your lookup and exactly which field (or fields) in your search are you trying to match against? You can use real field names, just don't include real field values&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 08:16:00 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-04-05T08:16:00Z</dc:date>
    <item>
      <title>How to compare multiple value in lookup to single value in index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592245#M206145</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;
&lt;P&gt;I have lookup table with 5 colon that contains IPs&lt;/P&gt;
&lt;P&gt;I want to create a search that exclude the IPs from my results, the issue is that I have 5 values and all of them should be&amp;nbsp; match to 1 single value&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mycontiation | search NOT [ inputlookup mylookup.csv ] |rename 1V as IP |fields IP]
| search NOT [|inputlookup mylookup.csv  |rename 2v as IP |fields IP]
| search NOT[|inputlookup mylookup.csv |rename 3v as IP |fields IP]
| search NOT [|inputlookup mylookup.csv |rename 4v  as IP |fields IP]
| search NOT [|inputlookup mylookup.csv |rename 5v as IP |fields IP] | table IP &lt;/LI-CODE&gt;
&lt;P&gt;its not working. anyone?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 16:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592245#M206145</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-04T16:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592250#M206146</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mycontiation | search NOT [ | inputlookup mylookup.csv 
| eval IP=null()
| foreach *v
    [| eval IP=if(isnull(IP),'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',mvappend(IP,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'))]
| fields IP
| mvexpand IP
| dedup IP]
| table IP &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Apr 2022 16:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592250#M206146</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-04T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592251#M206147</link>
      <description>&lt;P&gt;Couldn't you do that just with format?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 16:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592251#M206147</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-04T16:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592321#M206166</link>
      <description>&lt;P&gt;no &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I'v tried and no success.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 06:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592321#M206166</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T06:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592324#M206168</link>
      <description>&lt;P&gt;maybe I did wrong but I tried to do it in few ways:&lt;/P&gt;&lt;P&gt;mysearch&amp;nbsp;&lt;BR /&gt;| search NOT&lt;BR /&gt;[mylookup.csv&lt;BR /&gt;| format]&lt;BR /&gt;| dedup IP&lt;BR /&gt;| table IP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR:&lt;/P&gt;&lt;P&gt;mysearch&amp;nbsp;&lt;BR /&gt;| search NOT&lt;BR /&gt;[ inputlookup IP.csv&lt;/P&gt;&lt;P&gt;| fields IP1,IP2,IP3,IP4, IP_from_my_search&lt;/P&gt;&lt;P&gt;| format]&lt;BR /&gt;| dedup IP&lt;BR /&gt;| table IP&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 07:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592324#M206168</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T07:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592328#M206170</link>
      <description>&lt;P&gt;Did you try my solution?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 07:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592328#M206170</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-05T07:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592329#M206171</link>
      <description>&lt;P&gt;but what is IP? I need to rename the lookup fields to "IP"? as I did?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 07:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592329#M206171</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592331#M206173</link>
      <description>&lt;P&gt;I assumed from your search that IP was a field in your existing events that you were trying to match (and exclude events which matched any of the values in 1v, 2v, etc from your lookup file).&lt;/P&gt;&lt;P&gt;If this is not the case, please can you explain what your search was trying to do&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 07:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592331#M206173</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-05T07:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592334#M206175</link>
      <description>&lt;P&gt;I have one field from my search that should be much to one if the fields in the lookups&lt;/P&gt;&lt;P&gt;I tried to do your solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my search&lt;BR /&gt;| search NOT&lt;BR /&gt;[ inputlookup mylookupcsv&lt;BR /&gt;| rename V1 as IP&lt;BR /&gt;| rename v2 as IP&lt;BR /&gt;| rename V3 as IP&lt;BR /&gt;| rename V4 as IP&lt;BR /&gt;| rename V5 as IP&lt;BR /&gt;| eval IP=null()&lt;BR /&gt;| foreach *&lt;BR /&gt;[| eval sourceIPAddress=if(isnull(IP),"V1",mvappend(IP,V1)),&lt;BR /&gt;| eval sourceIPAddress=if(isnull(IP),"V2",mvappend(IP,V2))]&lt;BR /&gt;| fields IP&lt;BR /&gt;| mvexpand IP&lt;BR /&gt;| dedup IP]&lt;BR /&gt;| table IP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what you mean?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 07:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592334#M206175</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T07:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592336#M206176</link>
      <description>&lt;P&gt;How is this the same as my solution?&lt;/P&gt;&lt;P&gt;Assuming your search returns events with a field called IP and your lookup file contains rows with fields called V1, V2 etc (this has changed from 1V in your original post) - if this is not true, please provide an accurate description of your scenario&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;my search
| search NOT [ 
  | inputlookup mylookup.csv 
  | eval IP=null()
  | foreach V*
    [| eval IP=if(isnull(IP),'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',mvappend(IP,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'))]
  | fields IP
  | mvexpand IP
  | dedup IP]
| table IP &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592336#M206176</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-05T08:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592337#M206177</link>
      <description>&lt;P&gt;This is not entirely true,&amp;nbsp; I have 4 more fields,&amp;nbsp;How do I compare them from my lookup to my search? this is what I missed..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:12:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592337#M206177</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T08:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592339#M206178</link>
      <description>&lt;P&gt;Exactly which fields do you have in your lookup and exactly which field (or fields) in your search are you trying to match against? You can use real field names, just don't include real field values&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592339#M206178</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-05T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592340#M206179</link>
      <description>&lt;P&gt;OK&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, IP - is the field from my search (not in the lookup)&lt;/P&gt;&lt;P&gt;V1,V2,V3,V4,V5 is from mylookup (which is also IPs with a diff names) - they should be match to IP fields&amp;nbsp;&lt;/P&gt;&lt;P&gt;after we compare it - I want to exclude it from my search and show only the results that not contains the IPs from my lookup&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592340#M206179</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T08:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592344#M206180</link>
      <description>&lt;P&gt;So, to simplify it, you want something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;my search
| search NOT (IP=1.1.1.1 OR IP=2.2.2.2)
| table IP &lt;/LI-CODE&gt;&lt;P&gt;Now the IP addresses (1.1.1.1 and 2.2.2.2 in this example) are held in lookup file in fields called V1, V2 etc.&lt;/P&gt;&lt;P&gt;In order to get them in a field called IP, we first have to create a multivalue field called IP with each of them in from each row of the lookup file.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup mylookup.csv 
| eval IP=null()
| foreach V*
    [| eval IP=if(isnull(IP),'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',mvappend(IP,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'))]
| fields IP&lt;/LI-CODE&gt;&lt;P&gt;We can then use mvexpand to put them in separate events, which we then dedup (in case there are any duplicates in the whole file)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup mylookup.csv 
| eval IP=null()
| foreach V*
    [| eval IP=if(isnull(IP),'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',mvappend(IP,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'))]
| fields IP
| mvexpand IP
| dedup IP&lt;/LI-CODE&gt;&lt;P&gt;We now have a set of events with a singe field call IP with one event for each unique ip address in the lookup file. We can then plug this list into the main search (using NOT to exclude events with these ip addresses in the matching IP field&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;my search
| search NOT [ 
  | inputlookup mylookup.csv 
  | eval IP=null()
  | foreach V*
    [| eval IP=if(isnull(IP),'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',mvappend(IP,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'))]
  | fields IP
  | mvexpand IP
  | dedup IP]
| table IP &lt;/LI-CODE&gt;&lt;P&gt;Is this not what you want?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592344#M206180</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-05T08:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592352#M206181</link>
      <description>&lt;P&gt;by I have 5 IPs fields in my lookup which contains more then 1000 IPs&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I cant do the one condition and this is the reason I used lookup....&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592352#M206181</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T08:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592355#M206183</link>
      <description>&lt;P&gt;OK that was an important piece of information you could have mentioned earlier!&lt;/P&gt;&lt;P&gt;What was not working about your original option (corrected typos?)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mycontiation 
| search NOT [| inputlookup mylookup.csv |rename V1 as IP |fields IP]
| search NOT [| inputlookup mylookup.csv |rename V2 as IP |fields IP]
| search NOT [| inputlookup mylookup.csv |rename V3 as IP |fields IP]
| search NOT [| inputlookup mylookup.csv |rename V4 as IP |fields IP]
| search NOT [| inputlookup mylookup.csv |rename V5 as IP |fields IP]
| table IP &lt;/LI-CODE&gt;&lt;P&gt;What does job inspector say when you execute the search?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592355#M206183</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-05T09:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592359#M206185</link>
      <description>&lt;P&gt;the result are missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know for sure that one of the IP should show up and its not shown, I dont know what I missed&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592359#M206185</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592360#M206186</link>
      <description>&lt;P&gt;OK, can you show us for reference some part of your logs, and few rows of your lookup?&lt;/P&gt;&lt;P&gt;And what should be the result from those logs and lookup?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592360#M206186</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-05T09:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592362#M206187</link>
      <description>&lt;P&gt;my lookup is like that:&lt;/P&gt;&lt;P&gt;public_ip ,other_ip, more_ip&lt;/P&gt;&lt;P&gt;1.1.1.1, 2.2.2.2, 3.3.3.3&lt;/P&gt;&lt;P&gt;4.4.4.4,5.5.5.5,6.6.6.6 etc.....&lt;/P&gt;&lt;P&gt;from my search&lt;/P&gt;&lt;P&gt;IP=9.9.9.9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I'm looking the IP 9.9.9.9 I see its match to myseatch (my condition) and its not appear on my lookup - so I should get it into my result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope its more clear now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592362#M206187</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-04-05T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple value in lookup to single value in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592366#M206189</link>
      <description>&lt;P&gt;OK. So as long as your 9.9.9.9 IP is not included in the lookup in any of the fields, it should be shown as a valid result. But if you had this IP in your lookup in any of the fields, it should be filtered out, right?&lt;/P&gt;&lt;P&gt;That's what &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; 's solution does (as long as the field names are OK with your actual names in your splunk).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mycontiation 
| search NOT [| inputlookup mylookup.csv |rename V1 as IP |fields IP]
| search NOT [| inputlookup mylookup.csv |rename V2 as IP |fields IP]
| search NOT [| inputlookup mylookup.csv |rename V3 as IP |fields IP]
| search NOT [| inputlookup mylookup.csv |rename V4 as IP |fields IP]
| search NOT [| inputlookup mylookup.csv |rename V5 as IP |fields IP]
| table IP &lt;/LI-CODE&gt;&lt;P&gt;If you're not getting a particular IP address in your results which you believe should be there, verify if it really is so.&lt;/P&gt;&lt;P&gt;Check your&lt;/P&gt;&lt;PRE&gt;mycontiation IP=&amp;lt;your_ip&amp;gt;&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;| inputlookup mylookup.csv | where V1=&amp;lt;your_ip&amp;gt; OR V2=&amp;lt;your_ip&amp;gt; OR ...&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-value-in-lookup-to-single-value-in-index/m-p/592366#M206189</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-05T09:34:47Z</dc:date>
    </item>
  </channel>
</rss>

