<?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: Incomplete LOOKUP results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62492#M15425</link>
    <description>&lt;P&gt;Is ID extracting properly in 100% of your events?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2013 22:07:39 GMT</pubDate>
    <dc:creator>rgonzale6</dc:creator>
    <dc:date>2013-09-12T22:07:39Z</dc:date>
    <item>
      <title>Incomplete LOOKUP results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62490#M15423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I read about many similar issues here, but I was not able to get a satisfying answer.&lt;BR /&gt;
I am trying to use a lookup table, &lt;CODE&gt;lut.csv&lt;/CODE&gt;, to add information to some events. That LUT is written over daily with an &lt;CODE&gt;outputlookup&lt;/CODE&gt;. Some days, usually in streak of 2-3 days, the lookup will fail for most events.&lt;/P&gt;

&lt;P&gt;My search looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(...) | table ___time, ID,  fieldA | lookup lut.csv ID OUTPUT fieldB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With &lt;CODE&gt;inputlookup&lt;/CODE&gt;, I validated that for &lt;CODE&gt;ID="banana"&lt;/CODE&gt;, &lt;CODE&gt;fieldB="yellow"&lt;/CODE&gt; in &lt;CODE&gt;lut.csv&lt;/CODE&gt;. However, whenever I use lookup, &lt;CODE&gt;fieldB&lt;/CODE&gt; will be empty.&lt;/P&gt;

&lt;P&gt;Here is some information that may be relevant:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I'm using version 4.3.6&lt;/LI&gt;
&lt;LI&gt;When it "fails", about 5-10% of &lt;CODE&gt;ID&lt;/CODE&gt; will still be succesfully joined to the appropriate &lt;CODE&gt;fieldB&lt;/CODE&gt;. &lt;/LI&gt;
&lt;LI&gt;I tried the same search, specifying only one ID, it still couldn't join &lt;CODE&gt;fieldB&lt;/CODE&gt;, but this time generated the following error: &lt;CODE&gt;Empty csv lookup file (contains only a header) for table 'lut.csv': /opt/splunk/etc/apps/search/lookups/lut.csv&lt;/CODE&gt; (I confirm it is not empty)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any idea what is the issue (and how to solve it)?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;EDIT: This issue is exactly the same, but no answer &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/78891/lookup-does-not-return-results-for-all-fields"&gt;http://answers.splunk.com/answers/78891/lookup-does-not-return-results-for-all-fields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 19:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62490#M15423</guid>
      <dc:creator>cormieja</dc:creator>
      <dc:date>2013-09-12T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete LOOKUP results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62491#M15424</link>
      <description>&lt;P&gt;Are you using search-head pooling, using a bad NFS mount ?&lt;BR /&gt;
Is your lookup file path (/opt/splunk/etc/apps/search/lookups/lut.csv) is using a symlink ?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 20:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62491#M15424</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-09-12T20:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete LOOKUP results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62492#M15425</link>
      <description>&lt;P&gt;Is ID extracting properly in 100% of your events?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 22:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62492#M15425</guid>
      <dc:creator>rgonzale6</dc:creator>
      <dc:date>2013-09-12T22:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete LOOKUP results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62493#M15426</link>
      <description>&lt;P&gt;Yes. So when the lookup fails, my result looks like this, with an extracted value under ID:&lt;/P&gt;

&lt;P&gt;_time ID fieldA fieldB&lt;BR /&gt;
Sunday Banana Yellow [NULL]&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 03:15:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62493#M15426</guid>
      <dc:creator>cormieja</dc:creator>
      <dc:date>2013-09-13T03:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete LOOKUP results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62494#M15427</link>
      <description>&lt;P&gt;@cormieja how did you solve the issue? I've faced the same problem.&lt;/P&gt;

&lt;P&gt;What has helped me this time is recreation of lookup table. But I didn't realized the reason of the problem and cannot be sure it wouldn't repeat.&lt;/P&gt;

&lt;P&gt;What I've also done is eliminated table command in the query that generates lookup table. &lt;BR /&gt;
The search looked like: &lt;BR /&gt;
| dbquery dbname " select * ...."&lt;BR /&gt;
| table field1 field2 field3&lt;BR /&gt;
| outputlookup file.csv&lt;/P&gt;

&lt;P&gt;And now like:&lt;BR /&gt;
| dbquery dbname " select field1, field2, field3 ...."&lt;BR /&gt;
| outputlookup file.csv&lt;/P&gt;

&lt;P&gt;Not sure this affected the lookup table format but I've read about some problems of dbquery and table command so..&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 12:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62494#M15427</guid>
      <dc:creator>iKate</dc:creator>
      <dc:date>2014-03-12T12:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete LOOKUP results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62495#M15428</link>
      <description>&lt;P&gt;I had a lot of problems with the file's codification, and my issues seems to be the same that @cormieja had. Make sure that your file is UTF8 and the characters inside are properly written. Some times, when we save data inside the files, if you don't have a properly codification some characters could be "bad represented" and then, when Splunk try to read it we have issues like yours.&lt;/P&gt;

&lt;P&gt;I hope this clue will be useful.&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 17:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incomplete-LOOKUP-results/m-p/62495#M15428</guid>
      <dc:creator>slr</dc:creator>
      <dc:date>2015-10-27T17:13:31Z</dc:date>
    </item>
  </channel>
</rss>

