All Apps and Add-ons

Java Invalid Parameter Error when using DBConnect Rising Column

att35
Builder

Hi,

I am trying to setup a new input on Splunk DBConnect (V 3.1.4) to connect and retrieve data from MSSQL Server using MS-SQL Server Using jTDS Driver. Identity and Connection were setup successfully and a simple select * from <View Name> gets the data into the Preview Data pane. But as soon as I select any Rising Column and execute the query, following error is show.

alt text

Tried different types for rising column(int, datetime etc) but they all end up with the error show above. In another thread it was mentioned that permissions on /opt/splunk/var/lib/splunk/modinputs/server/splunk_app_db_connect might be a reason but those seem fine to me, although the folder itself is empty. There is no checkpoint value stored.

alt text

What could be causing this issue? Anything wrong with the version I am using?

Thanks,

~ Abhi

vishaltaneja070
Motivator

Hello @att35,

I dont think there is any issue with Splunk Version because i am using the same with no issues.
Please try the below steps:
1. First try to run the query directly, which i think you have already tried.
2. Then after that select checkpoint field and enter the value of checkpoint.
3. Then update the query to have checkpoint information: i.e. SELECT * FROM VIEW_NAME WHERE CHECKPOINT_VALUE > ? ORDER BY CHECKPOINT_VALUE
4. I think this will solve your issue.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...