# How to fix to keep run the logstash till SQL server query complete

**URL:** https://discuss.elastic.co/t/how-to-fix-to-keep-run-the-logstash-till-sql-server-query-complete/355085
**Category:** Logstash
**Created:** [March 9, 2024, 6:06pm UTC](https://discuss.elastic.co/t/how-to-fix-to-keep-run-the-logstash-till-sql-server-query-complete/355085 "2024-03-09T18:06:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![J\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_s/32/122308_2.png) [@J\_S](https://discuss.elastic.co/u/J_S)
#### Post date: [March 9, 2024, 6:06pm UTC](https://discuss.elastic.co/t/how-to-fix-to-keep-run-the-logstash-till-sql-server-query-complete/355085/1 "2024-03-09T18:06:22Z")

</div>

I have a JDBC Logstash config file, which works perfectly but after few mins, the command prompt window closed automatically and there are still some data left over in the SQL database need to be pushed to Elastic Index.

How to make sure that Logstash pulled entire data results from SQL query and pushed to index?

---

<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: [April 6, 2024, 6:07pm UTC](https://discuss.elastic.co/t/how-to-fix-to-keep-run-the-logstash-till-sql-server-query-complete/355085/2 "2024-04-06T18:07:15Z")

</div>

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