# Migrating multiple tables from mysql to logstash

**URL:** <https://discuss.elastic.co/t/migrating-multiple-tables-from-mysql-to-logstash/130387>\
**Category:** Logstash\
**Created:** [May 3, 2018, 7:36am UTC](https://discuss.elastic.co/t/migrating-multiple-tables-from-mysql-to-logstash/130387 "2018-05-03T07:36:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anasov](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@anasov](https://discuss.elastic.co/u/anasov)\
**Post date:** [May 3, 2018, 7:36am UTC](https://discuss.elastic.co/t/migrating-multiple-tables-from-mysql-to-logstash/130387/1 "2018-05-03T07:36:13Z")

</div>

Hi , ALL, i want to know how can i migrate mutiple tables from MySQL to logstash. I can do migration just for one table

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 3, 2018, 9:07am UTC](https://discuss.elastic.co/t/migrating-multiple-tables-from-mysql-to-logstash/130387/2 "2018-05-03T09:07:39Z")

</div>

Yes, you can have multiple jdbc inputs in your configuration.

However, migrating MySQL tables one-by-one to Elasticsearch doesn't necessarily make sense because of ES's lack of joins in queries. You often have to store data differently in ES than in relational databases.

---

<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:** [May 31, 2018, 9:07am UTC](https://discuss.elastic.co/t/migrating-multiple-tables-from-mysql-to-logstash/130387/3 "2018-05-31T09:07:45Z")

</div>

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