# Use more than one table with different indexes in logstash

**URL:** <https://discuss.elastic.co/t/use-more-than-one-table-with-different-indexes-in-logstash/71676>\
**Category:** Logstash\
**Created:** [January 16, 2017, 6:04am UTC](https://discuss.elastic.co/t/use-more-than-one-table-with-different-indexes-in-logstash/71676 "2017-01-16T06:04:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdullah\_Alaiwat](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Abdullah\_Alaiwat](https://discuss.elastic.co/u/Abdullah_Alaiwat)\
**Post date:** [January 16, 2017, 6:04am UTC](https://discuss.elastic.co/t/use-more-than-one-table-with-different-indexes-in-logstash/71676/1 "2017-01-16T06:04:16Z")

</div>

Is there any way to use two tables in logstash but with two different indexes? or i have to create two config files with two services?

---

<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:** [January 16, 2017, 6:37am UTC](https://discuss.elastic.co/t/use-more-than-one-table-with-different-indexes-in-logstash/71676/2 "2017-01-16T06:37:33Z")

</div>

I'm assuming you're talking about database tables accessed through the jdbc input? Sure, you can have multiple such inputs feeding data to different ES indexes.

> <https://stackoverflow.com/questions/27146032/make-logstash-add-different-inputs-to-different-indices>

---

<div class="post-metadata">

**Author:** ![Abdullah\_Alaiwat](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Abdullah\_Alaiwat](https://discuss.elastic.co/u/Abdullah_Alaiwat)\
**Post date:** [January 16, 2017, 6:38am UTC](https://discuss.elastic.co/t/use-more-than-one-table-with-different-indexes-in-logstash/71676/3 "2017-01-16T06:38:28Z")

</div>

many thanks, i will check it now

---

<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:** [February 13, 2017, 6:38am UTC](https://discuss.elastic.co/t/use-more-than-one-table-with-different-indexes-in-logstash/71676/4 "2017-02-13T06:38:48Z")

</div>

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