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!

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...