# SQL to Elastic

**URL:** https://discuss.elastic.co/t/sql-to-elastic/142408
**Category:** Logstash
**Created:** [July 31, 2018, 3:54pm UTC](https://discuss.elastic.co/t/sql-to-elastic/142408 "2018-07-31T15:54:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Gian\_Carlo\_Menotti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gian_carlo_menotti/32/33774_2.png) [@Gian\_Carlo\_Menotti](https://discuss.elastic.co/u/Gian_Carlo_Menotti)
#### Post date: [July 31, 2018, 3:54pm UTC](https://discuss.elastic.co/t/sql-to-elastic/142408/1 "2018-07-31T15:54:30Z")

</div>

Hi, i would like to know, how to add 40 tables in elastic using logstash. the best way is make 40 conf files?

---

<div class="post-metadata">

### Author: ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)
#### Post date: [July 31, 2018, 6:00pm UTC](https://discuss.elastic.co/t/sql-to-elastic/142408/2 "2018-07-31T18:00:02Z")

</div>

There is no best way. Are you planning to have different filters for all the inputs?

Managing multiple conf files does tend to be a little tedious, down the line.

Why not have all the jdbc inputs in one file?

---

<div class="post-metadata">

### Author: ![Gian\_Carlo\_Menotti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gian_carlo_menotti/32/33774_2.png) [@Gian\_Carlo\_Menotti](https://discuss.elastic.co/u/Gian_Carlo_Menotti)
#### Post date: [August 1, 2018, 1:46pm UTC](https://discuss.elastic.co/t/sql-to-elastic/142408/3 "2018-08-01T13:46:37Z")

</div>

Thx for your help, do you a txt sample for that output?. i have like 40 tables that i want to replicate in elastic

---

<div class="post-metadata">

### Author: ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)
#### Post date: [August 1, 2018, 5:32pm UTC](https://discuss.elastic.co/t/sql-to-elastic/142408/4 "2018-08-01T17:32:54Z")

</div>

Not really sure what example you need. But, here is a real-life conf directory that I was using a while back. I created multiple conf files for various data sources and added tags to segregate conditionals.

> **[NerdSec/logstash](https://github.com/NerdSec/logstash)**
>
> logstash - Logstash configuration files

---

<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 29, 2018, 5:39pm UTC](https://discuss.elastic.co/t/sql-to-elastic/142408/5 "2018-08-29T17:39:16Z")

</div>

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