<?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: inputlookup not returning all the rows in csv file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195684#M56423</link>
    <description>&lt;P&gt;This post doesn't talk about stats command at all.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 11:15:57 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2018-02-27T11:15:57Z</dc:date>
    <item>
      <title>inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195675#M56414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a csv file with nearly 50000 rows. When I try to fetch all the rows using the inputlookup command, I am not able to retrieve all the 50000 rows. Only 42000 odd rows are returned.&lt;/P&gt;

&lt;P&gt;Also, when I use this csv for lookup, for all the rows that are present after the 5000th row, lookup is not happening. However, if I take a particular row and place it within the 5000 rows, lookup happens succesfully.&lt;/P&gt;

&lt;P&gt;Can anyone explain this strange behavior? Please let me know what changes I should make in conf files to enable succesful lookup.&lt;/P&gt;

&lt;P&gt;I checked the &lt;CODE&gt;max_memtable_bytes&lt;/CODE&gt; value in my setup and my csv file size is way below the limit.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Keerthana&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 05:29:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195675#M56414</guid>
      <dc:creator>keerthana_k</dc:creator>
      <dc:date>2014-06-11T05:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195676#M56415</link>
      <description>&lt;P&gt;Check for unmatched/Orphan double quotes in your CSV files. That will cause problem and lookups wont be complete.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 22:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195676#M56415</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-16T22:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195677#M56416</link>
      <description>&lt;P&gt;Why would quotes affect this? A csv is split by linebreaks for rows, and commas for columns.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 18:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195677#M56416</guid>
      <dc:creator>jizzmaster</dc:creator>
      <dc:date>2015-08-11T18:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195678#M56417</link>
      <description>&lt;P&gt;newlines can appear in a quoted value, so it's not as simple as one logical row per line.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 18:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195678#M56417</guid>
      <dc:creator>steveyz</dc:creator>
      <dc:date>2015-08-11T18:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195679#M56418</link>
      <description>&lt;P&gt;what is the location of the file...(where you copy that file)&lt;BR /&gt;
inputlookup ..............................?????&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 07:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195679#M56418</guid>
      <dc:creator>rashid47010</dc:creator>
      <dc:date>2016-05-23T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195680#M56419</link>
      <description>&lt;P&gt;I have the same problem.. Did you solve your case?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195680#M56419</guid>
      <dc:creator>jmorais</dc:creator>
      <dc:date>2018-02-26T17:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195681#M56420</link>
      <description>&lt;P&gt;I downvoted this post because that is not the problem, 50.000 rows always? a simple stats count returns 50.000, but in database the result is 206.000&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195681#M56420</guid>
      <dc:creator>jmorais</dc:creator>
      <dc:date>2018-02-26T17:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195682#M56421</link>
      <description>&lt;P&gt;I downvoted this post because that is not the problem, 50.000 rows always? a simple stats count returns 50.000, but in database the result is 206.000&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195682#M56421</guid>
      <dc:creator>jmorais</dc:creator>
      <dc:date>2018-02-26T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195683#M56422</link>
      <description>&lt;P&gt;Read the post carefully. They have 50000 rows but they were getting only 42000.&lt;BR /&gt;
As per your comment then wouldn't they be getting all 50000 results.&lt;BR /&gt;
More over the question talks about CSV. In case if the CSV has any unbalanced quotes then the lookup works till that point and fails after that.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 11:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195683#M56422</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2018-02-27T11:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195684#M56423</link>
      <description>&lt;P&gt;This post doesn't talk about stats command at all.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 11:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195684#M56423</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2018-02-27T11:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup not returning all the rows in csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195685#M56424</link>
      <description>&lt;P&gt;If you need in stats command..  Here is the text from splunk docs&lt;/P&gt;

&lt;P&gt;Memory and maximum results&lt;BR /&gt;
In the limits.conf file, the maxresultrows setting in the [searchresults] stanza specifies the maximum number of results to return. The default value is 50,000. Increasing this limit can result in more memory usage.&lt;/P&gt;

&lt;P&gt;The max_mem_usage_mb setting in the [default] stanza is used to limit how much memory the stats command uses to keep track of information. If the stats command reaches this limit, the command stops adding the requested fields to the search results. You can increase the limit, contingent on the available system memory.&lt;/P&gt;

&lt;P&gt;If you are using Splunk Cloud and want to change either of these limits, file a Support ticket.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-not-returning-all-the-rows-in-csv-file/m-p/195685#M56424</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2020-09-29T18:12:32Z</dc:date>
    </item>
  </channel>
</rss>

