<?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: Splunk DB Connect 2 - dbxquery only returns 1001 rows in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175346#M16985</link>
    <description>&lt;P&gt;Greetings LANDesk user! DBX 2.3.0 should no longer have these limitations, please give it a shot.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 16:18:09 GMT</pubDate>
    <dc:creator>jcoates_splunk</dc:creator>
    <dc:date>2016-08-02T16:18:09Z</dc:date>
    <item>
      <title>Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175336#M16975</link>
      <description>&lt;P&gt;I'm trying to return all of the data from a table in a Microsoft SQL database using the sqljdbc4.jar. Running&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; SELECT * from table
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in SQL Management Studio correctly returns &amp;gt;11,000 records. However, when I try to run the same search from Splunk via dbxquery:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery connection=landesk shortnames=t  maxrows=15,000 query="SELECT%20*%20from%20table"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk returns exactly 1001 rows, regardless of any value of maxrows&amp;gt;1000.  It seems like it's trying to page results, but there's no paging control in dbxquery... What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2015 04:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175336#M16975</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2015-05-08T04:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175337#M16976</link>
      <description>&lt;P&gt;so dbxquery.py has this in it's code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from splunk import rest
from splunk import util

from functools import partial

REST_BASE='db_connect'
MAX_ROWS=1001

....

def generate(self):
        ....
        maxrows_opt = int(self.maxrows or 0)
        maxrows = MAX_ROWS
        ....
        if maxrows_opt and maxrows_opt &amp;amp;lt; MAX_ROWS:
            maxrows = maxrows_opt

        ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so it seems there's an intentional 1001 row hard limit in place. Anyone care to elaborate why? I was able to change this value to 100001 and pull in all of my values with no errors. I'm sure there are cases where we want to gate the rows imported (paging or based on an incrementing column), but need more flexibility to work directly with the data.&lt;/P&gt;

&lt;P&gt;There may be a different way of thinking about this problem, but my goal was simply to directly access and extract the data into a state table (csv lookup) for Enterprise Security. The built in data inputs / data lookups didn't seem exactly to fit the bill.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2015 20:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175337#M16976</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2015-05-08T20:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175338#M16977</link>
      <description>&lt;P&gt;dbxquery is intended for use as a preview tool, and isn't guaranteed to be around forever.  If you want to get data from a relational database, I'd recommend using a dbinput (seems like batch mode would fit the bill) or dblookup.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 21:55:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175338#M16977</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2015-05-12T21:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175339#M16978</link>
      <description>&lt;P&gt;Yeah, I'm not sold on that... &lt;/P&gt;

&lt;P&gt;a: not how it's &lt;A href="http://docs.splunk.com/Documentation/DBX/2.0.2/DeployDBX/Commands"&gt;documented&lt;/A&gt; &lt;BR /&gt;
b: dbindex and dblookup both seem pointless for my use case- while relatively insignificant using dbindex would count against index licensing limits when all I need is a current state of the data. dblookup requires mapping against a Splunk search... again all I want to do is extract data from the SQL tables to build a current-state table. &lt;/P&gt;

&lt;P&gt;Honestly the only reason I looked at v2 of DB Connect is the support of Search Head clusters. If dbxquery isn't fully supported as an interface to extract data (despite the documentation) then I'll script another solution and uninstall...&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 00:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175339#M16978</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2015-05-13T00:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175340#M16979</link>
      <description>&lt;P&gt;I'm going to have to agree with Jeff here.  We use dbquery all throughout out Splunk installation to show real-time data from our database.  We have no interest in indexing this data as we only care about what it looks like at this moment in time (for example, we use it heavily to show data on which help desk tickets currently need to be worked and then launch our help desk system when they click on one of those rows).  &lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 12:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175340#M16979</guid>
      <dc:creator>monkeydust</dc:creator>
      <dc:date>2015-05-14T12:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175341#M16980</link>
      <description>&lt;P&gt;Agree - not sure what the point of maxrows is, if there is a hard coded limit of 1000. The DBX GUI based lookup and inputs do not allow for advanced SQL queries. Sometimes you just want to rip a SQL query, run it once per day and do an outputlookup or something. There shouldnt be a hard coded limit like this.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 17:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175341#M16980</guid>
      <dc:creator>pj</dc:creator>
      <dc:date>2015-05-19T17:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175342#M16981</link>
      <description>&lt;P&gt;Actually - you can pass some advanced SQL to get what you need. You just have to index the data first, then you could do an outputlookup from there.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 19:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175342#M16981</guid>
      <dc:creator>pj</dc:creator>
      <dc:date>2015-05-19T19:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175343#M16982</link>
      <description>&lt;P&gt;Agreed.  We ended up changing the hardcoded 1001 to 1,000,000 to get around this issue, but will have to remember to fix it every time we upgrade.  Hard limiting the rows to 1001 makes the app completely pointless for most practical use.  It's more than just a "preview" tool.  This hard limit affects the dbxquery command also.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 21:52:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175343#M16982</guid>
      <dc:creator>clayramey</dc:creator>
      <dc:date>2015-06-02T21:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175344#M16983</link>
      <description>&lt;P&gt;Agreed - forcing the use of DB Input has two side effects:&lt;/P&gt;

&lt;P&gt;1) Ingesting the entire dataset into a Splunk index from the source DB - data duplication, synchronization issues, ETL is bad when datasets are large (think Phoenix on HBase!)&lt;BR /&gt;
2) DB Input counts towards ones Splunk quotas - Sorry that's double dipping...&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 18:14:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175344#M16983</guid>
      <dc:creator>alex_loffler</dc:creator>
      <dc:date>2015-09-25T18:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175345#M16984</link>
      <description>&lt;P&gt;It seems like the latest version upped this limit to 5001, but the problem bit me too, and I was going crazy trying to figure out why my query was behaving differently between Splunk and the mysql client. I also raised the limit inside the code to the maximum allowed value for maxSetRows, which seems to be 50,000,000 for this particular driver.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2016 19:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175345#M16984</guid>
      <dc:creator>delink</dc:creator>
      <dc:date>2016-07-30T19:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175346#M16985</link>
      <description>&lt;P&gt;Greetings LANDesk user! DBX 2.3.0 should no longer have these limitations, please give it a shot.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 16:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175346#M16985</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2016-08-02T16:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2 - dbxquery only returns 1001 rows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175347#M16986</link>
      <description>&lt;P&gt;DBX still has a default maxrows = 100,000.  If you want to overcome that limitation and return 100,001 rows, use the parameter 'maxrows' like this: '| dbxquery maxrows=100001'&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 22:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-dbxquery-only-returns-1001-rows/m-p/175347#M16986</guid>
      <dc:creator>benton</dc:creator>
      <dc:date>2016-08-25T22:53:38Z</dc:date>
    </item>
  </channel>
</rss>

