Splunk Search

Splunk DB Connect 1: Why am I getting error "command="dbquery", A database error occurred: Invalid Fetch Size"?

DanielFordWA
Contributor

Hi,

I keep getting the following error in DB connect 1. I have setup the External Database and can use it for lookups in search, but any large manual queries or Database inputs do not work.

Error

command="dbquery", A database error occurred: Invalid Fetch Size

I am running Splunk on the below.

jre6
WindowsServer2008R2

How can I fix this with my current setup?

Will switching to jre8 and DB Connect 2 sort this out?

Ticking the 'limit to 1000 results' results in the query working every time, but this is not really a resolution to the issue.

0 Karma

jcoates_splunk
Splunk Employee
Splunk Employee

dbquery (and dbxquery in DB Connect 2) are designed for interactive browsing of small data sets. The assumption has been that you'd index the data if you need to do big data manipulation tasks.

0 Karma

DanielFordWA
Contributor

Thanks for the reply.

I need to enrich around 10,000 clients at a time for ad hoc queries. The entire DB contains around 170,000 clients with 25 columns of info.

"The assumption has been that you'd index the data if you need to do big data manipulation tasks"

How do you advise I do this?

I had mistakenly assumed that with DBconnect I can pull the entire DB and index it, then pull the changes daily. I was then planning to run searches against the index.

Hope you can help.

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...