<?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: Performance in inputlookup vs lookup (command) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491415#M194239</link>
    <description>&lt;P&gt;My lookup is relatively small, only contained between 3,000 and 3,400 records.  According one of splunk best practices, "Filter as soon as possible", I think the fist query is better than the second one.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 14:08:57 GMT</pubDate>
    <dc:creator>lucas4394</dc:creator>
    <dc:date>2019-10-01T14:08:57Z</dc:date>
    <item>
      <title>Performance in inputlookup vs lookup (command)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491411#M194235</link>
      <description>&lt;P&gt;There is a big difference in term of performance in using "inputlookup" and "lookup" from the following queries with the same time range.  The number of records in "mylookup" object has 3k records.&lt;BR /&gt;
query 1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz src=* [| inputlookup mylookup | fields src]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;query 2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=xyz src=* 
| lookup mylookup src as src output key 
| where isnotnull(key)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I got the result almost constantly from query 2, but query 1 was stuck.  I think query 1 should have better performance than query 2 does.  Any clues?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 17:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491411#M194235</guid>
      <dc:creator>lucas4394</dc:creator>
      <dc:date>2019-09-30T17:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performance in inputlookup vs lookup (command)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491412#M194236</link>
      <description>&lt;P&gt;depends on how big the list. use pattern 2 as a rule if you don't know for SURE the list will be short like in the tens of values.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 17:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491412#M194236</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2019-09-30T17:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Performance in inputlookup vs lookup (command)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491413#M194237</link>
      <description>&lt;P&gt;"mylookup" object has 3000 records, and less than 250 KB.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 17:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491413#M194237</guid>
      <dc:creator>lucas4394</dc:creator>
      <dc:date>2019-09-30T17:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performance in inputlookup vs lookup (command)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491414#M194238</link>
      <description>&lt;P&gt;It's likely because of the subsearch present in one but not the other. For some reason that I'm unaware of, Splunk's performance quickly degrades when using subsearches. They should be avoided at all costs. In fact, if your lookup became &amp;gt; 10,000 rows, the subsearch wouldn't be accurate without increasing your &lt;CODE&gt;maxout&lt;/CODE&gt; parameter in the &lt;CODE&gt;[subsearch]&lt;/CODE&gt; stanza of &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Limitsconf"&gt;limits.conf&lt;/A&gt; because the default maximum number of events to return from a subsearch is 10,000.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 20:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491414#M194238</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-09-30T20:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance in inputlookup vs lookup (command)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491415#M194239</link>
      <description>&lt;P&gt;My lookup is relatively small, only contained between 3,000 and 3,400 records.  According one of splunk best practices, "Filter as soon as possible", I think the fist query is better than the second one.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 14:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/491415#M194239</guid>
      <dc:creator>lucas4394</dc:creator>
      <dc:date>2019-10-01T14:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Performance in inputlookup vs lookup (command)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/510806#M194240</link>
      <description>&lt;P&gt;I don't know where the crossover for performance is, and I expect it changes depending on the deployment design. But staying in the tens is definitely safe.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although "filter as soon as possible" is the general recommendation, the search inspector and introspection can help you choose the best command (inputlookup, lookup) for your data.&lt;/P&gt;&lt;P&gt;I believe that the server sends back a response that includes the entire expanded search string, which includes expanded inputlookup subsearches. In one case where a table was significantly increased in size, a search with a few results generated over 75MB of traffic from the server.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 08:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Performance-in-inputlookup-vs-lookup-command/m-p/510806#M194240</guid>
      <dc:creator>malvidin</dc:creator>
      <dc:date>2020-07-24T08:40:14Z</dc:date>
    </item>
  </channel>
</rss>

