# Running multiple SQL Queries in logstash JDBC plugin

**URL:** <https://discuss.elastic.co/t/running-multiple-sql-queries-in-logstash-jdbc-plugin/251394>\
**Category:** Logstash\
**Created:** [October 8, 2020, 8:06am UTC](https://discuss.elastic.co/t/running-multiple-sql-queries-in-logstash-jdbc-plugin/251394 "2020-10-08T08:06:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [October 8, 2020, 8:06am UTC](https://discuss.elastic.co/t/running-multiple-sql-queries-in-logstash-jdbc-plugin/251394/1 "2020-10-08T08:06:10Z")

</div>

I know that multiple JDBC input plugins can be used in logstash to support the multiple SQL statements. Would like to know whether these are run sequentially or parallelly. Is there any way I can enforce them to run one after the other in a sequence?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 8, 2020, 2:51pm UTC](https://discuss.elastic.co/t/running-multiple-sql-queries-in-logstash-jdbc-plugin/251394/2 "2020-10-08T14:51:57Z")

</div>

> [@mruthyu](#):
>
> Is there any way I can enforce them to run one after the other in a sequence?

No, you cannot control the execution order of input plugins.

---

<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:** [November 5, 2020, 2:52pm UTC](https://discuss.elastic.co/t/running-multiple-sql-queries-in-logstash-jdbc-plugin/251394/3 "2020-11-05T14:52:00Z")

</div>

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