<?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: Missing values from lookup-files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62896#M15530</link>
    <description>&lt;P&gt;Problem solved!&lt;BR /&gt;
I found some " in the lookup file. Looks like the splunk lookup gets in trouble if only one " is appearing per lookup-file line.&lt;BR /&gt;
It results in strange behaviour as described above. The lines between a first single-" and the next " getting an null content.&lt;BR /&gt;
After letting sed delete all the " in the file, the lookup works fine!&lt;BR /&gt;
As I use a script to fill the lookup files it was easy to add the following sed command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sed -i 's/"//g' $LOOKUP_FILE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now every future lookup-file should be compatible.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2013 11:49:23 GMT</pubDate>
    <dc:creator>christian_l</dc:creator>
    <dc:date>2013-04-10T11:49:23Z</dc:date>
    <item>
      <title>Are there any known problems regarding missing values in big lookup-files and is there a solution for it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62892#M15526</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I got a problem while performing a lookup at a csv-file.&lt;BR /&gt;In general the lookup works fine, but its missing some of the looked-up values.&lt;BR /&gt;Here is my lookup-relevant search-string:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  | lookup my_lookup number as lookup-number OUTPUT description | eval description = if(description="","no description",description)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I pipe the results into a table with number and description. In this table some of the description columns are empty, unless the value exists inside the lookup-file.&lt;BR /&gt;There are no special characters in the missing value. I moved the regarding row at the top and end of the file which doesn't impact the results. Other values above and below the problem value work good in the lookup. Also the problem-row works fine, if its the only row inside the lookup-file.&lt;BR /&gt;There are several of this "problem-rows" spread over the lookup-file. As in my eval defined the values don't seem to be read as empty values ( "" ), because there are not replaced with "no description".&lt;BR /&gt;The lookup-file itself has a 531K size and 12925 rows in 2 columns.&lt;/P&gt;
&lt;P&gt;I read about the change of processing lookup-files &lt;A href="http://splunk-base.splunk.com/answers/8228/lookup-table-limits" target="_blank"&gt;here http://splunk-base.splunk.com/answers/8228/lookup-table-limits&lt;/A&gt; but I don't think this is relevant for my problem.&lt;/P&gt;
&lt;P&gt;Are there any known problems regarding missing values in big lookup-files and is there a solution for it?&lt;/P&gt;
&lt;P&gt;Thanks all&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 14:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62892#M15526</guid>
      <dc:creator>christian_l</dc:creator>
      <dc:date>2022-10-13T14:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values from lookup-files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62893#M15527</link>
      <description>&lt;P&gt;Can you show an example of a working row vs. the problem row?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 15:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62893#M15527</guid>
      <dc:creator>Strype</dc:creator>
      <dc:date>2013-03-15T15:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values from lookup-files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62894#M15528</link>
      <description>&lt;P&gt;Here are two examples from the lookup-file:&lt;/P&gt;

&lt;P&gt;Working rows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;P 012035,WLAN Problems
P 012049,PJ: APC Smart UPS 2200
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Problem rows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;P 011678,Testing
P 011115,PJ: Checkpoint Appliance Upgrade
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hint: The file is sorted by the P-number. My tests showed me there is no relevance if the problem row is at the top or bottom of the file.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 16:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62894#M15528</guid>
      <dc:creator>christian_l</dc:creator>
      <dc:date>2013-03-15T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values from lookup-files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62895#M15529</link>
      <description>&lt;P&gt;Okay well in my experience (which is short) the data would be missing from ALL rows below a missing comma or a space after a row. So my guess is search logic.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 16:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62895#M15529</guid>
      <dc:creator>Strype</dc:creator>
      <dc:date>2013-03-15T16:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values from lookup-files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62896#M15530</link>
      <description>&lt;P&gt;Problem solved!&lt;BR /&gt;
I found some " in the lookup file. Looks like the splunk lookup gets in trouble if only one " is appearing per lookup-file line.&lt;BR /&gt;
It results in strange behaviour as described above. The lines between a first single-" and the next " getting an null content.&lt;BR /&gt;
After letting sed delete all the " in the file, the lookup works fine!&lt;BR /&gt;
As I use a script to fill the lookup files it was easy to add the following sed command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sed -i 's/"//g' $LOOKUP_FILE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now every future lookup-file should be compatible.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 11:49:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-there-any-known-problems-regarding-missing-values-in-big/m-p/62896#M15530</guid>
      <dc:creator>christian_l</dc:creator>
      <dc:date>2013-04-10T11:49:23Z</dc:date>
    </item>
  </channel>
</rss>

