# Multiple Sql Server DB mapping with Elasticsearch Index for data transfer using Logstash

**URL:** <https://discuss.elastic.co/t/multiple-sql-server-db-mapping-with-elasticsearch-index-for-data-transfer-using-logstash/280364>\
**Category:** Logstash\
**Created:** [August 3, 2021, 7:52pm UTC](https://discuss.elastic.co/t/multiple-sql-server-db-mapping-with-elasticsearch-index-for-data-transfer-using-logstash/280364 "2021-08-03T19:52:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikashmarwal](https://avatars.discourse-cdn.com/v4/letter/v/bb73d2/32.png) [@vikashmarwal](https://discuss.elastic.co/u/vikashmarwal)\
**Post date:** [August 3, 2021, 7:52pm UTC](https://discuss.elastic.co/t/multiple-sql-server-db-mapping-with-elasticsearch-index-for-data-transfer-using-logstash/280364/1 "2021-08-03T19:52:30Z")

</div>

We are having multiple databases in SQL Server, those are created dynamically for specific workspace. In these databases we have a DocumentDetail table. If there is one DB then I am able to map it in config to transfer the data from SQL Server to Elasticsearch index. But in my case of dynamic DB how to map with multiple Elasticsearch Index so that the Logstash will transfer the data accordingly.

---

<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:** [August 31, 2021, 7:52pm UTC](https://discuss.elastic.co/t/multiple-sql-server-db-mapping-with-elasticsearch-index-for-data-transfer-using-logstash/280364/2 "2021-08-31T19:52:35Z")

</div>

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