# How to implement Keep alive in logstash using JDBC input

**URL:** <https://discuss.elastic.co/t/how-to-implement-keep-alive-in-logstash-using-jdbc-input/308140>\
**Category:** Logstash\
**Created:** [June 24, 2022, 7:30pm UTC](https://discuss.elastic.co/t/how-to-implement-keep-alive-in-logstash-using-jdbc-input/308140 "2022-06-24T19:30:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oskr](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@Oskr](https://discuss.elastic.co/u/Oskr)\
**Post date:** [June 24, 2022, 7:30pm UTC](https://discuss.elastic.co/t/how-to-implement-keep-alive-in-logstash-using-jdbc-input/308140/1 "2022-06-24T19:30:26Z")

</div>

Hello Team,

I have a question about a bug in my environment, I am using logstash to extract data from the oracle database, our logstash is running on AWS the sql takes 100 sec to run on average, but at some times of the day it takes more than 400sec, when it takes more than 400 sec we have noticed that the session is dropped by the gateway. Can I implement a keep\_alive in a JDBC input?

Thanks for your help,

Best regards

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 22, 2022, 7:31pm UTC](https://discuss.elastic.co/t/how-to-implement-keep-alive-in-logstash-using-jdbc-input/308140/2 "2022-07-22T19:31:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
