<?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 How to return a list of hosts from a lookup table, but not in events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160481#M45350</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm using a lookup table with approx 107,000 lines and 6MB in size. Trying to display a list of hosts which are in a lookup table, but not in the Splunk events. The below search seems to work, but not effectively.  The results display 96,648. I'm expecting more around 50,000.  When I search a host which is in the results, it is contained in the Splunk events which validates it's not effective. Any idea whether there are limits on size of lookup tables? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup workstations | rename fielda AS fieldb | dedup fieldb | search NOT [search index=index-name  | dedup fieldb | fields fieldb]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Jun 2015 05:30:37 GMT</pubDate>
    <dc:creator>chrisfrigo</dc:creator>
    <dc:date>2015-06-18T05:30:37Z</dc:date>
    <item>
      <title>How to return a list of hosts from a lookup table, but not in events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160481#M45350</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm using a lookup table with approx 107,000 lines and 6MB in size. Trying to display a list of hosts which are in a lookup table, but not in the Splunk events. The below search seems to work, but not effectively.  The results display 96,648. I'm expecting more around 50,000.  When I search a host which is in the results, it is contained in the Splunk events which validates it's not effective. Any idea whether there are limits on size of lookup tables? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup workstations | rename fielda AS fieldb | dedup fieldb | search NOT [search index=index-name  | dedup fieldb | fields fieldb]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jun 2015 05:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160481#M45350</guid>
      <dc:creator>chrisfrigo</dc:creator>
      <dc:date>2015-06-18T05:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a list of hosts from a lookup table, but not in events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160482#M45351</link>
      <description>&lt;P&gt;What with this?&lt;/P&gt;

&lt;P&gt;index=index-name | dedup fieldb | fields fieldb | search NOT [ inputlookup workstations | rename fielda AS fieldb | dedup fieldb fields fieldb]&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:09:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160482#M45351</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2015-06-18T06:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a list of hosts from a lookup table, but not in events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160483#M45352</link>
      <description>&lt;P&gt;I see what your saying, the results should be minimal. but they are not matching. of the total 86,000 events, there are 76,000 display. &lt;/P&gt;

&lt;P&gt;I will try reduce the CSV size&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 07:22:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160483#M45352</guid>
      <dc:creator>chrisfrigo</dc:creator>
      <dc:date>2015-06-18T07:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a list of hosts from a lookup table, but not in events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160484#M45353</link>
      <description>&lt;P&gt;Ended up being subsearch limit to 10500 lines. updated the maxout and now working. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Admin/Limitsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Admin/Limitsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2015 04:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160484#M45353</guid>
      <dc:creator>chrisfrigo</dc:creator>
      <dc:date>2015-06-19T04:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a list of hosts from a lookup table, but not in events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160485#M45354</link>
      <description>&lt;P&gt;You can try using &lt;STRONG&gt;multisearch&lt;/STRONG&gt; command. e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch [| inputlookup workstations | rename fielda AS fieldb | dedup fieldb | eval LOOKUP_CHECK="YES"] [search index=index-name  | dedup fieldb | fields fieldb | eval INDEX_CHECK="YES"] | stats values(LOOKUP_CHECK) as LOOKUP_CHECK, values(INDEX_CHECK) as INDEX_CHECK by fieldb | fillnull values="NULL" LOOKUP_CHECK | search LOOKUP_CHECK="NULL"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2015 05:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-a-list-of-hosts-from-a-lookup-table-but-not-in/m-p/160485#M45354</guid>
      <dc:creator>vganjare</dc:creator>
      <dc:date>2015-06-19T05:40:44Z</dc:date>
    </item>
  </channel>
</rss>

