<?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 Compare query to lookup table but don't print if the results are in the lookup table. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755132#M242901</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=web
host!="*TEST*"
| rare limit=10 http_user_agent,c_ip,src,X_Forwarded_For,host
```|lookup static_assets ip as c_ip OUTPUT nt_host```
|table http_user_agent,c_ip,src_X_Forwarded_For,host,nt_host&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I have a lookup table with three fields ,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;- category&lt;BR /&gt;- IP&lt;BR /&gt;- nt_host&lt;BR /&gt;&lt;BR /&gt;I would like to compare the results from the search to the lookup table IP and nt_host and only print out the query that isn't in the lookup table.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2025 18:11:14 GMT</pubDate>
    <dc:creator>hl</dc:creator>
    <dc:date>2025-11-03T18:11:14Z</dc:date>
    <item>
      <title>Compare query to lookup table but don't print if the results are in the lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755132#M242901</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=web
host!="*TEST*"
| rare limit=10 http_user_agent,c_ip,src,X_Forwarded_For,host
```|lookup static_assets ip as c_ip OUTPUT nt_host```
|table http_user_agent,c_ip,src_X_Forwarded_For,host,nt_host&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I have a lookup table with three fields ,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;- category&lt;BR /&gt;- IP&lt;BR /&gt;- nt_host&lt;BR /&gt;&lt;BR /&gt;I would like to compare the results from the search to the lookup table IP and nt_host and only print out the query that isn't in the lookup table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 18:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755132#M242901</guid>
      <dc:creator>hl</dc:creator>
      <dc:date>2025-11-03T18:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare query to lookup table but don't print if the results are in the lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755133#M242902</link>
      <description>&lt;P&gt;You have most of it already.&amp;nbsp; Just on nt_host.&amp;nbsp; If the value is null then it's not in the lookup.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=web host!="*TEST*"
| rare limit=10 http_user_agent,c_ip,src,X_Forwarded_For,host
| lookup static_assets ip as c_ip OUTPUT nt_host
| where isnull(nt_host)
| table http_user_agent,c_ip,src_X_Forwarded_For,host,nt_host&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Nov 2025 19:15:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755133#M242902</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-11-03T19:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compare query to lookup table but don't print if the results are in the lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755134#M242903</link>
      <description>&lt;P&gt;Ok so within a |where clause the nt_host does have to be actually "null" , null could mean don't use also?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 19:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755134#M242903</guid>
      <dc:creator>hl</dc:creator>
      <dc:date>2025-11-03T19:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare query to lookup table but don't print if the results are in the lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755135#M242904</link>
      <description>&lt;P&gt;Null is not the same as "null".&amp;nbsp; The former is the absence of a value while the latter is a specific literal string.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;isnull()&lt;/FONT&gt; function tests if the given field has no value.&lt;/P&gt;&lt;P&gt;If a lookup command fails to find a match then the &lt;FONT face="courier new,courier"&gt;OUTPUT&lt;/FONT&gt; fields will be null (empty).&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 19:51:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-query-to-lookup-table-but-don-t-print-if-the-results-are/m-p/755135#M242904</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-11-03T19:51:19Z</dc:date>
    </item>
  </channel>
</rss>

