# Pass parameters between inputs (jdbc)

**URL:** <https://discuss.elastic.co/t/pass-parameters-between-inputs-jdbc/146787>\
**Category:** Logstash\
**Created:** [August 30, 2018, 10:45pm UTC](https://discuss.elastic.co/t/pass-parameters-between-inputs-jdbc/146787 "2018-08-30T22:45:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![franklin.samboni](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@franklin.samboni](https://discuss.elastic.co/u/franklin.samboni)\
**Post date:** [August 30, 2018, 10:45pm UTC](https://discuss.elastic.co/t/pass-parameters-between-inputs-jdbc/146787/1 "2018-08-30T22:45:24Z")

</div>

Hello, I configured Logstash to read one jdbc input (mysql) and put information in elasticsearch, all this run ok. But now I need some parameters of a second input (other mysql database) that must be passed to SQL statement of the first input, that is to say, the first DB have the main data and second DB have a required parameters to filter the SQL statement of first DB.

I have been searching if this is possible but I can not find nothing, ¿How can I do that, some idea?

Thanks.

---

<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:** [August 31, 2018, 7:32am UTC](https://discuss.elastic.co/t/pass-parameters-between-inputs-jdbc/146787/2 "2018-08-31T07:32:02Z")

</div>

This is not possible.

---

<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:** [September 28, 2018, 7:32am UTC](https://discuss.elastic.co/t/pass-parameters-between-inputs-jdbc/146787/3 "2018-09-28T07:32:07Z")

</div>

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