All Apps and Add-ons

Need Help with Splunk Dbconnect rising inputs query

phularah
Communicator

I am trying to create a db input keeping in mind the data that we have in db. It has fields like PKEY, STARTTIME, ENDTIME etc. If I use PKEY or STARTTIME in Rising column, I am bound to miss some rows.
Also, both PKEY and STARTTIME fields are not unique. So, I am trying to use CONCATE(PKEY,STARTTIME).

SELECT BTACHTASK,
ASOF,
PKEY,
STARTTIME,
ENDTIME,
CONCAT(PKEY,
STARTTIME) AS combination
FROM CORE_MCA.SPLUNK_BATCH_STATES_VW
WHERE CONCAT(PKEY,STARTTIME) > ?
ORDER BY CONCAT(PKEY,STARTTIME) ASC



I am using Rising input and checkpoint should have been combination but I am not getting any results in Rising Column. I am getting the error java.sql.SQLException: Missing IN or OUT parameter at index:: 1.


What am I doing wrong here? Also, sometimes the normal query also gives this error but after refreshing and selecting the connection once again I get the required data.

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Splunk Federated Analytics for Amazon Security Lake

Thursday, November 21, 2024  |  11AM PT / 2PM ET Register Now Join our session to see the technical ...

Splunk With AppDynamics - Meet the New IT (And Engineering) Couple

Wednesday, November 20, 2024  |  10AM PT / 1PM ET Register Now Join us in this session to learn all about ...

Building a Self-Service and Scalable Observability Practice

Thursday, November 14, 2024  |  11AM PT / 2PM ET Register Now Join us in this session and learn how Splunk ...