# Reading value from file and using it dynamically in JDBC select query where clause

**URL:** <https://discuss.elastic.co/t/reading-value-from-file-and-using-it-dynamically-in-jdbc-select-query-where-clause/169134>\
**Category:** Logstash\
**Created:** [February 20, 2019, 5:55am UTC](https://discuss.elastic.co/t/reading-value-from-file-and-using-it-dynamically-in-jdbc-select-query-where-clause/169134 "2019-02-20T05:55:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ApekshaB](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apekshab/32/63273_2.png) [@ApekshaB](https://discuss.elastic.co/u/ApekshaB)\
**Post date:** [February 20, 2019, 5:55am UTC](https://discuss.elastic.co/t/reading-value-from-file-and-using-it-dynamically-in-jdbc-select-query-where-clause/169134/1 "2019-02-20T05:55:09Z")

</div>

I want to use 'file' filter, read a value from that file, and in same conf file, i need to use that value in jdbc query to Database to fetch data rows depending on the value retrieved from the file.  
Is is possible to do the same..

Regards.

---

<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:** [March 20, 2019, 5:55am UTC](https://discuss.elastic.co/t/reading-value-from-file-and-using-it-dynamically-in-jdbc-select-query-where-clause/169134/2 "2019-03-20T05:55:13Z")

</div>

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