<?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: Why is MySQL query size is being limited using Splunk DB connect in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172898#M186558</link>
    <description>&lt;P&gt;I hope they will fix this in a future release, but hmozaffari's post was extremely helpful.&lt;/P&gt;

&lt;P&gt;Replace the original code in $SPLUNK_HOME$/etc/apps/splunk_app_db_connect/bin/dbxquery.py that are commented out by the # with the following.&lt;/P&gt;

&lt;P&gt;This will allow you to set maxrows = 0 in your splunk query to make it unlimited.&lt;/P&gt;

&lt;P&gt;Your dbxquery.py code should look like the below:&lt;/P&gt;

&lt;P&gt;&amp;gt; Blockquote&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  #maxrows_opt = int(self.maxrows or 0)
  #maxrows = MAX_ROWS
  maxrows_opt = int(self.maxrows or MAX_ROWS)
  maxrows = 0

  parser = partial(parseEntry, abbreviate)

  #if maxrows_opt and maxrows_opt &amp;amp;lt; MAX_ROWS:
  if maxrows_opt and maxrows_opt &amp;amp;gt; 0:
      maxrows = maxrows_opt
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:51:41 GMT</pubDate>
    <dc:creator>madc0w</dc:creator>
    <dc:date>2020-09-28T19:51:41Z</dc:date>
    <item>
      <title>Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172890#M186550</link>
      <description>&lt;P&gt;I am not sure what is causing this behavior. &lt;/P&gt;

&lt;P&gt;My table has 2369 rows.&lt;BR /&gt;
I found this by using Splunk DB Connect Database Query with the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT SQL_CALC_FOUND_NUM_ROWS 1 FROM myTable
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I actually start to return row data in my query the number of rows returned starts to reduce for example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM myTable
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns 1018 rows and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM myTable where id &amp;gt; 900
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns 180 rows.&lt;/P&gt;

&lt;P&gt;So I have ruled out that it is a hard limit on my number of rows. &lt;BR /&gt;
I suspected there was a setting in java.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_ROOT/etc/apps/dbx/local/java.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That is limiting my query size. I have been through the "OMG so many settings" trying to identify those limiting query size and increased everything by an order of magnitude. This has been purely trial and error and has had zero effect. I ended up reinstalling Splunk and dbconnect from scratch, incase my actions had caused it. No effect.&lt;/P&gt;

&lt;P&gt;If someone could explain what components are used by Splunk and DB connect to execute a MySQL query this would help give me other avenues to target. I.E.:&lt;/P&gt;

&lt;P&gt;java.framework is used for XXX, MySQL_java_driver is used for XXX, etc, etc&lt;/P&gt;

&lt;P&gt;Any help in lifting this limit would be greatly appreciated.    &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172890#M186550</guid>
      <dc:creator>dpetzer</dc:creator>
      <dc:date>2020-09-28T16:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172891#M186551</link>
      <description>&lt;P&gt;By default, you should be able to query hundred thousands of events in "database query" dashboard.&lt;BR /&gt;
Basically, all default settings will locate in .../default/...conf and customized settings will be in .../local/...conf&lt;/P&gt;

&lt;P&gt;You can compare if any changes made on java.conf in local and default.&lt;BR /&gt;
Or only keep [java], [bridge] section in .../local/java.conf and remove/backup the rest, restart Splunk to see if this issue could be resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2014 21:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172891#M186551</guid>
      <dc:creator>mchang_splunk</dc:creator>
      <dc:date>2014-05-20T21:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172892#M186552</link>
      <description>&lt;P&gt;I renamed java.conf to "java.conf copy" in .../default folder.&lt;/P&gt;

&lt;P&gt;So now I only have java.conf in .../local folder.&lt;/P&gt;

&lt;P&gt;Restarted Splunk with no effect. Still returning limited number of rows.&lt;/P&gt;

&lt;P&gt;I also renamed java.conf to "java.conf copy" in .../local folder as well to see if the file was being used (I.E. did I find the correct one). I restarted and get "The Java Bridge server is not running". So I have the active java.conf file, it is the same as the "default" one packaged with the app".&lt;/P&gt;

&lt;P&gt;It sounds like my problem is elsewhere, any ideas?&lt;/P&gt;

&lt;P&gt;This limit is also in Splunk indexing. 1018 events found.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 01:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172892#M186552</guid>
      <dc:creator>dpetzer</dc:creator>
      <dc:date>2014-05-21T01:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172893#M186553</link>
      <description>&lt;P&gt;The best way is to extract orginal db connect app to compare what you have modified in java.conf.&lt;BR /&gt;
Or installing a fresh new db connect app and do changes only via UI.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 02:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172893#M186553</guid>
      <dc:creator>mchang_splunk</dc:creator>
      <dc:date>2014-05-21T02:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172894#M186554</link>
      <description>&lt;P&gt;Deleted dbx app folder and reinstalled fresh from website.&lt;/P&gt;

&lt;P&gt;Getting Java Bridge Server is not running. &lt;BR /&gt;
ERROR Command output: None&lt;BR /&gt;
Error talks about premature endo of file.&lt;/P&gt;

&lt;P&gt;I put the origonal dbx folder back but this did not fix it.&lt;BR /&gt;
I will try to fix that and then see if the limit is fixed.&lt;/P&gt;

&lt;P&gt;I am going to try and reinstall splunk from start again.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 22:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172894#M186554</guid>
      <dc:creator>dpetzer</dc:creator>
      <dc:date>2014-05-21T22:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172895#M186555</link>
      <description>&lt;P&gt;Reinstalled everything from scratch, deleted Splunk from applications folder, started again.&lt;/P&gt;

&lt;P&gt;select * from myTable;&lt;/P&gt;

&lt;P&gt;is still only returning 1018 rows.&lt;/P&gt;

&lt;P&gt;select id from myTable;&lt;/P&gt;

&lt;P&gt;returns 2369 rows&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 23:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172895#M186555</guid>
      <dc:creator>dpetzer</dc:creator>
      <dc:date>2014-05-21T23:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172896#M186556</link>
      <description>&lt;P&gt;I noticed the same behavior on DB Connect v2 using &lt;STRONG&gt;dbxquery&lt;/STRONG&gt; command and &lt;STRONG&gt;maxrows&lt;/STRONG&gt; parameter. It seems it ignores values more than 1000 and returns only first 1000 rows.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 14:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172896#M186556</guid>
      <dc:creator>hmozaffari</dc:creator>
      <dc:date>2015-05-07T14:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172897#M186557</link>
      <description>&lt;P&gt;In my case I noticed the &lt;CODE&gt;MAX_ROWS=1001&lt;/CODE&gt; constant defined in:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{SPLUNK_HOME}\etc\apps\splunk_app_db_connect\bin\dbxquery.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically query only returned up to 1001 rows. I increased it and it resolved my issue.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 15:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172897#M186557</guid>
      <dc:creator>hmozaffari</dc:creator>
      <dc:date>2015-05-07T15:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172898#M186558</link>
      <description>&lt;P&gt;I hope they will fix this in a future release, but hmozaffari's post was extremely helpful.&lt;/P&gt;

&lt;P&gt;Replace the original code in $SPLUNK_HOME$/etc/apps/splunk_app_db_connect/bin/dbxquery.py that are commented out by the # with the following.&lt;/P&gt;

&lt;P&gt;This will allow you to set maxrows = 0 in your splunk query to make it unlimited.&lt;/P&gt;

&lt;P&gt;Your dbxquery.py code should look like the below:&lt;/P&gt;

&lt;P&gt;&amp;gt; Blockquote&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  #maxrows_opt = int(self.maxrows or 0)
  #maxrows = MAX_ROWS
  maxrows_opt = int(self.maxrows or MAX_ROWS)
  maxrows = 0

  parser = partial(parseEntry, abbreviate)

  #if maxrows_opt and maxrows_opt &amp;amp;lt; MAX_ROWS:
  if maxrows_opt and maxrows_opt &amp;amp;gt; 0:
      maxrows = maxrows_opt
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172898#M186558</guid>
      <dc:creator>madc0w</dc:creator>
      <dc:date>2020-09-28T19:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MySQL query size is being limited using Splunk DB connect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172899#M186559</link>
      <description>&lt;P&gt;Is this a bug, a technical issue, or Splunk's way of limiting how much data we can query, because they want us indexing the data? &lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-MySQL-query-size-is-being-limited-using-Splunk-DB-connect/m-p/172899#M186559</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2016-01-13T20:13:35Z</dc:date>
    </item>
  </channel>
</rss>

