<?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: What are the differences between the lookup and inputlookup commands? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207058#M60345</link>
    <description>&lt;P&gt;Thanks! But yes, that command works. WE think we've figured out the problem which is that the file reached over 10MB in size, so splunk indexed/cached it. then, when we uploaded a new file (one that has 1234 in it), splunk is still using the old cached version. does anyone know where i can delete the tsidx file of the cached version? &lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2015 17:13:11 GMT</pubDate>
    <dc:creator>sel105</dc:creator>
    <dc:date>2015-12-23T17:13:11Z</dc:date>
    <item>
      <title>What are the differences between the lookup and inputlookup commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207054#M60341</link>
      <description>&lt;P&gt;Is there any reason why this command would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup myfile | search SERIAL_NO "1234" | table X, Y, Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this command would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mydata serial_number="1234" | table subject
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this command would not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mydata serial_number="1234" | lookup myfile SERIAL_NO as serial_number output X, Y, Z | table subject, X, Y, Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And by "not work", I mean that the table command produces a result with "subject," but no X, Y, or Z..... the lookup is failing.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207054#M60341</guid>
      <dc:creator>sel105</dc:creator>
      <dc:date>2015-12-22T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between the lookup and inputlookup commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207055#M60342</link>
      <description>&lt;P&gt;It might be important to note that this lookup file is one that we have to delete and replace monthly. we can't append because the data changes so much every month. &lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207055#M60342</guid>
      <dc:creator>sel105</dc:creator>
      <dc:date>2015-12-22T15:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between the lookup and inputlookup commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207056#M60343</link>
      <description>&lt;P&gt;also probably worth noting that for, let's say, serial number 3333....which was in one of the previous versions of this lookup file, and is also in the newer version...... this command works fine. is the lookup file cached somewhere that only gets looked at when "|lookup" is run, but not when "|inputlookup" is run?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207056#M60343</guid>
      <dc:creator>sel105</dc:creator>
      <dc:date>2015-12-22T15:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between the lookup and inputlookup commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207057#M60344</link>
      <description>&lt;P&gt;Does this command  work? &lt;CODE&gt;| inputlookup myfile | search SERIAL_NO="1234" | table X, Y, Z&lt;/CODE&gt;  (note the = between SERIAL_NO and 1234) it may be that the fields are not correctly configured, thus &lt;CODE&gt;lookup myfile SERIAL_NO as serial_number output X, Y, Z&lt;/CODE&gt; returns no values. &lt;/P&gt;

&lt;P&gt;The inputlookup command you use may be matching the string "1234" rather than the field SERIAL_NO, which is why it works. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207057#M60344</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2020-09-29T08:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between the lookup and inputlookup commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207058#M60345</link>
      <description>&lt;P&gt;Thanks! But yes, that command works. WE think we've figured out the problem which is that the file reached over 10MB in size, so splunk indexed/cached it. then, when we uploaded a new file (one that has 1234 in it), splunk is still using the old cached version. does anyone know where i can delete the tsidx file of the cached version? &lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 17:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207058#M60345</guid>
      <dc:creator>sel105</dc:creator>
      <dc:date>2015-12-23T17:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between the lookup and inputlookup commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207059#M60346</link>
      <description>&lt;P&gt;I don't know sorry. Hopefully someone else can help.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 10:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-are-the-differences-between-the-lookup-and-inputlookup/m-p/207059#M60346</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-24T10:25:59Z</dc:date>
    </item>
  </channel>
</rss>

