# Building an index with multiple tables in Logstash 7.0

**URL:** <https://discuss.elastic.co/t/building-an-index-with-multiple-tables-in-logstash-7-0/176909>\
**Category:** Logstash\
**Created:** [April 15, 2019, 1:09pm UTC](https://discuss.elastic.co/t/building-an-index-with-multiple-tables-in-logstash-7-0/176909 "2019-04-15T13:09:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pablo_s/32/42735_2.png) [@Pablo\_S](https://discuss.elastic.co/u/Pablo_S)\
**Post date:** [April 15, 2019, 1:09pm UTC](https://discuss.elastic.co/t/building-an-index-with-multiple-tables-in-logstash-7-0/176909/1 "2019-04-15T13:09:26Z")

</div>

I have 20 tables in Oracle, all of them contain (among others) the following columns: id, name, description and notes. I would like the user to enter a text, the text to be searched in either name, description and/or notes of all the tables, and the result to return which table(s) and id(s) has the text.

In the Logstash 7.0 configuration file, do I need to define one jdbc input for each table? Or should the input be a single select with an union of all the tables?

---

<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 13, 2019, 1:15pm UTC](https://discuss.elastic.co/t/building-an-index-with-multiple-tables-in-logstash-7-0/176909/2 "2019-05-13T13:15:15Z")

</div>

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