<?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: Find missing hosts after referencing a lookup file. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634066#M220218</link>
    <description>&lt;P&gt;You're looking for hosts not in the lookup file so use the &lt;FONT face="courier new,courier"&gt;NOT&lt;/FONT&gt; keyword in the search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search NOT
 [ |inputlookup my_host_list
   |table host ip_address ]
   |dedup host
   |table host ip_count ip_address repot_count repot&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 15:08:42 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-03-10T15:08:42Z</dc:date>
    <item>
      <title>Find missing hosts after referencing a lookup file.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634058#M220216</link>
      <description>&lt;P&gt;Hello I have the following search which produces&amp;nbsp; statistics(746) in Splunk:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index sourcetype=my_st id=100 host!=10.* earliest=-1d@d
| stats values(repot) as repot dc(repot) as repost_count values(ip) as ip_address dc(ip) as ip_count by host
|table host ip_count ip_address repot_count repot&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;I am then using a lookup file to filter out unwanted hosts from the above search (which produces statitics(676) in Splunk.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search
 [ |inputlookup my_host_list
   |table host ip_address ]
   |dedup host
   |table host ip_count ip_address repot_count repot&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How would I determine the host names of the 70 missing hosts from the my_host_list lookup?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 14:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634058#M220216</guid>
      <dc:creator>jason_hotchkiss</dc:creator>
      <dc:date>2023-03-10T14:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find missing hosts after referencing a lookup file.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634066#M220218</link>
      <description>&lt;P&gt;You're looking for hosts not in the lookup file so use the &lt;FONT face="courier new,courier"&gt;NOT&lt;/FONT&gt; keyword in the search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search NOT
 [ |inputlookup my_host_list
   |table host ip_address ]
   |dedup host
   |table host ip_count ip_address repot_count repot&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:08:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634066#M220218</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-10T15:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find missing hosts after referencing a lookup file.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634074#M220219</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;- thank you.&amp;nbsp; I think I have been staring at this screen too long....&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634074#M220219</guid>
      <dc:creator>jason_hotchkiss</dc:creator>
      <dc:date>2023-03-10T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find missing hosts after referencing a lookup file.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634077#M220220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226579"&gt;@jason_hotchkiss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index sourcetype=my_st id=100 host!=10.* earliest=-1d@d
| stats 
   values(repot) as repot 
   dc(repot) as repost_count 
   values(ip) as ip_address 
   dc(ip) as ip_count 
   count
   BY host
| append [ |inputlookup my_host_list
   | eval count=0
   | fields host ip_address count ]
| stats 
   values(repot) as repot 
   dc(repot) as repost_count 
   values(ip) as ip_address 
   dc(ip) as ip_count 
   sum(count) As total
   BY host
| eval status=if(total=0,"missing","present"
| table host ip_count ip_address repot_count repot status&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 16:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-missing-hosts-after-referencing-a-lookup-file/m-p/634077#M220220</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-03-10T16:04:05Z</dc:date>
    </item>
  </channel>
</rss>

