<?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 Wrong sorting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93132#M23977</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;We met a problem with sorting data in a table. We sort users id-s, let's say there's 350000 of them, its format is 1 - 350000. The results are in a table wraped in paginator. &lt;/P&gt;

&lt;P&gt;The problem is when trying to sort by user_id by default means of splunk web-interface (triangles near the param name), its last value in descending order is 300000 and then goes 300001, 300002, etc, instead of 350000, 349999, etc. &lt;/P&gt;

&lt;P&gt;To check it by yourself, for example create csv file(test.csv) with one column of numbers 1-350000 (e.g. with a header "P"), add this file in lookups, and run the command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup test.csv | table P | sort 0 num(P) P
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or just &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup test.csv | table P  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and click triangles&lt;/P&gt;

&lt;P&gt;P.S. I didn't manage to find any proper limits that can affect in limits.conf.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2012 13:35:30 GMT</pubDate>
    <dc:creator>iKate</dc:creator>
    <dc:date>2012-10-17T13:35:30Z</dc:date>
    <item>
      <title>Wrong sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93132#M23977</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;We met a problem with sorting data in a table. We sort users id-s, let's say there's 350000 of them, its format is 1 - 350000. The results are in a table wraped in paginator. &lt;/P&gt;

&lt;P&gt;The problem is when trying to sort by user_id by default means of splunk web-interface (triangles near the param name), its last value in descending order is 300000 and then goes 300001, 300002, etc, instead of 350000, 349999, etc. &lt;/P&gt;

&lt;P&gt;To check it by yourself, for example create csv file(test.csv) with one column of numbers 1-350000 (e.g. with a header "P"), add this file in lookups, and run the command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup test.csv | table P | sort 0 num(P) P
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or just &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup test.csv | table P  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and click triangles&lt;/P&gt;

&lt;P&gt;P.S. I didn't manage to find any proper limits that can affect in limits.conf.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 13:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93132#M23977</guid>
      <dc:creator>iKate</dc:creator>
      <dc:date>2012-10-17T13:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93133#M23978</link>
      <description>&lt;P&gt;@iKate, I am unable to replicate your problem.  I created a csv file with 425064 rows. What version of Splunk are you using, how large in MB is your lookup, are your results truncated? You might have a conflicting limit settings.&lt;/P&gt;

&lt;P&gt;To find system defaults for limits and comparing against your user and app.&lt;/P&gt;

&lt;P&gt;./splunk btool --debug limits list&lt;BR /&gt;
./splunk btool --debug --user=admin limits list&lt;BR /&gt;
./splunk btool --debug --app=nix limits list&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 18:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93133#M23978</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-10-17T18:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93134#M23979</link>
      <description>&lt;P&gt;@bmacias84, thanks, I've checked default and my user's limits with btool and found no differences. And what limits can conflict in my test case? If it can help I can send these limits lists, just need an email.&lt;BR /&gt;
Also I run the same inputlookup commands with csv file from admin user - the same wrong sorting.&lt;/P&gt;

&lt;P&gt;We're using Splunk 4.3.4 build 136012. This testing csv-file is 3Mb in size.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 19:59:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93134#M23979</guid>
      <dc:creator>iKate</dc:creator>
      <dc:date>2012-10-17T19:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93135#M23980</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/99224"&gt;@iKate&lt;/a&gt;, If your results where truncated I was thinking the following settings.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[searchresults]&lt;BR /&gt;
maxresultsrows =&lt;BR /&gt;
[lookup]&lt;BR /&gt;
max_memtable_bytes =&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;I generated a 8MB test file with and still no problem.  Even though the results are sorted incorrectly do you still recieve all your results or are they truncated?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93135#M23980</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-28T12:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93136#M23981</link>
      <description>&lt;P&gt;As @bmacias84 suggested &lt;BR /&gt;
helped changing this limit:&lt;BR /&gt;
[searchresults]&lt;BR /&gt;
maxresultsrows = &lt;/P&gt;

&lt;P&gt;By default we had 100000 and turned to 400000. Whether it's coincidence or not but we experience downgrading of system performance though.  &lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93136#M23981</guid>
      <dc:creator>iKate</dc:creator>
      <dc:date>2012-11-01T15:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93137#M23982</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/99224"&gt;@iKate&lt;/a&gt;, that is not a coincidence going 8x time the default  possibily would have performance impacts.   I would try to find a happpy median.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;This limit should not exceed 50000. Setting this limit higher than 50000 causes instability.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you are not currently memory constrained try increasing and playing with max_mem_usage_mb under global.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wrong-sorting/m-p/93137#M23982</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-28T12:43:18Z</dc:date>
    </item>
  </channel>
</rss>

