# How to make single jdbc connection to sql server in logstash configuration instead of making connection everytime to each table

**URL:** <https://discuss.elastic.co/t/how-to-make-single-jdbc-connection-to-sql-server-in-logstash-configuration-instead-of-making-connection-everytime-to-each-table/247045>\
**Category:** Logstash\
**Created:** [September 1, 2020, 5:44am UTC](https://discuss.elastic.co/t/how-to-make-single-jdbc-connection-to-sql-server-in-logstash-configuration-instead-of-making-connection-everytime-to-each-table/247045 "2020-09-01T05:44:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tharak](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@tharak](https://discuss.elastic.co/u/tharak)\
**Post date:** [September 1, 2020, 5:44am UTC](https://discuss.elastic.co/t/how-to-make-single-jdbc-connection-to-sql-server-in-logstash-configuration-instead-of-making-connection-everytime-to-each-table/247045/1 "2020-09-01T05:44:04Z")

</div>

I have 10 sql tables in my database, to index all those tables data i have logstash configuration where i am making jdbc connection to each and every table. Instead of doing that how can i make a connection only once to index all the tables data. can you provide the various types of configurations for logstash

---

<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:** [September 29, 2020, 5:44am UTC](https://discuss.elastic.co/t/how-to-make-single-jdbc-connection-to-sql-server-in-logstash-configuration-instead-of-making-connection-everytime-to-each-table/247045/2 "2020-09-29T05:44:12Z")

</div>

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