# Ingesting meta data from database and file from file system

**URL:** <https://discuss.elastic.co/t/ingesting-meta-data-from-database-and-file-from-file-system/52651>\
**Category:** Logstash\
**Created:** [June 13, 2016, 7:15pm UTC](https://discuss.elastic.co/t/ingesting-meta-data-from-database-and-file-from-file-system/52651 "2016-06-13T19:15:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muddana](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@muddana](https://discuss.elastic.co/u/muddana)\
**Post date:** [June 13, 2016, 7:15pm UTC](https://discuss.elastic.co/t/ingesting-meta-data-from-database-and-file-from-file-system/52651/1 "2016-06-13T19:15:15Z")

</div>

Hi -

New to logstash.

I am looking to ingest files along with related metadata into ES. I have metadata and file path in database.

Just wondering if there is a way to get meta data (like created date), and file path from database and then ingest the meta data and file together using existing input plugins.

I can use JDBC to get the data from database. I need to use that data and read the file from disk and then ingest data and file together into ES.

Appreciate the comments.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 14, 2016, 6:37am UTC](https://discuss.elastic.co/t/ingesting-meta-data-from-database-and-file-from-file-system/52651/2 "2016-06-14T06:37:35Z")

</div>

You'd either need to build your own plugin, or ingest the DB data and then use the ES filter with the file input to merge it.

---

<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:** [July 6, 2017, 4:53am UTC](https://discuss.elastic.co/t/ingesting-meta-data-from-database-and-file-from-file-system/52651/3 "2017-07-06T04:53:11Z")

</div>


