All Apps and Add-ons

Is it possible to automatic retry for missed query in db connect?

hoseineagle
Observer

Hi all.

I'm using splunk 9.0.2 and db connect 3.11.1.

Sometimes my connection from db connect to my database fails. so I'm wondering if is it possible to automatic retry the missed query or not?

My query is depend on time to retrive last 5 min entry rows. so the missed query caused data loss.

My query:

SELECT * FROM DB.MY_TABLE1 WHERE insert_date >= SYSDATE - INTERVAL 5 MINUTE

Labels (2)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Splunk inputs do not retry when they encounter an error.  The only way I can think of to do that would be to use a scripted or modular input to read the database.  The script could be written to retry on connection failure (or any other error).  Be aware that this means you would lose the Rising Column feature of DB Connect so your script would have to replicate the feature somehow.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...