<?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 Table Comparison with field and to return field value that is not in the lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-Comparison-with-field-and-to-return-field-value/m-p/534528#M151055</link>
    <description>&lt;P&gt;Sadly it did not work, any IP i put in for field3 (whether in the whitelist or not) displayed in a table with value of "Yes" for InWhitelist&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also field4 that holds the hostname does not carry over to the table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 22:48:16 GMT</pubDate>
    <dc:creator>peetchow</dc:creator>
    <dc:date>2020-12-30T22:48:16Z</dc:date>
    <item>
      <title>Lookup Table Comparison with field and to return field value that is not in the lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-Comparison-with-field-and-to-return-field-value/m-p/532860#M150536</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I know there are a lot of postings with answers on lookup tables but I am still stuck.&amp;nbsp; I have not splunked in a few years and i hit a wall even when looking back at some of my old saved strings.&lt;/P&gt;&lt;P&gt;I have a csv file that has 2 columns.&amp;nbsp; One that contains IPAddress and the other that has SubnetMasks&lt;/P&gt;&lt;P&gt;I am searching in my logs for IPAdresses that i want to compare with the IPAddresses that are in the lookup csv file.&amp;nbsp; if the IPAddresses are not found ... then display them in a table.&lt;/P&gt;&lt;P&gt;MY query is as follows:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;index=blah&amp;nbsp; field3="*" | fields field3 field4 | dedup field3 | rename field3 as Source_IP | lookup ip_whitelist IPAddress AS Source_IP | eval InWhitelist="Yes" | table Source_IP IPAddress field4 InWhitelist | where InWhitelist="Yes" | sort -Source_IP&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;where field3 is the field with the IP Addresses (extracted from delimited extractions)&lt;/LI&gt;&lt;LI&gt;where field4 is the field that has the hostname&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This spits out a nice table but i notice IPs that are not in my whitelist are showing up.&lt;/P&gt;&lt;P&gt;What is wrong here !?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is greatly appreciated !&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 19:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-Comparison-with-field-and-to-return-field-value/m-p/532860#M150536</guid>
      <dc:creator>peetchow</dc:creator>
      <dc:date>2020-12-11T19:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table Comparison with field and to return field value that is not in the lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-Comparison-with-field-and-to-return-field-value/m-p/533660#M150803</link>
      <description>&lt;P&gt;This may help...&lt;/P&gt;&lt;P&gt;Below will search in the lookup and pull the results when the ip is not available in lookup.&lt;/P&gt;&lt;P&gt;| makeresults | eval field3="192.168.1.6", field4="hostname" | fields field3 field4 | dedup field3 | rename field3 as Source_IP | lookup &lt;EM&gt;ip_whitelist&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt; IPAddresses AS Source_IP | eval InWhitelist=if(isnull(SubnetMasks),"Yes","No") | table Source_IP field4 InWhitelist SubnetMasks | where InWhitelist="Yes"&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2020 19:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-Comparison-with-field-and-to-return-field-value/m-p/533660#M150803</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2020-12-19T19:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table Comparison with field and to return field value that is not in the lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-Comparison-with-field-and-to-return-field-value/m-p/534528#M151055</link>
      <description>&lt;P&gt;Sadly it did not work, any IP i put in for field3 (whether in the whitelist or not) displayed in a table with value of "Yes" for InWhitelist&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also field4 that holds the hostname does not carry over to the table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 22:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-Comparison-with-field-and-to-return-field-value/m-p/534528#M151055</guid>
      <dc:creator>peetchow</dc:creator>
      <dc:date>2020-12-30T22:48:16Z</dc:date>
    </item>
  </channel>
</rss>

