# Can logstash lookup an ID from ingested logs and replace it with its corresponding data from a database table?

**URL:** <https://discuss.elastic.co/t/can-logstash-lookup-an-id-from-ingested-logs-and-replace-it-with-its-corresponding-data-from-a-database-table/169868>\
**Category:** Logstash\
**Created:** [February 25, 2019, 3:52pm UTC](https://discuss.elastic.co/t/can-logstash-lookup-an-id-from-ingested-logs-and-replace-it-with-its-corresponding-data-from-a-database-table/169868 "2019-02-25T15:52:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrplus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jrplus/32/41302_2.png) [@jrplus](https://discuss.elastic.co/u/jrplus)\
**Post date:** [February 25, 2019, 3:52pm UTC](https://discuss.elastic.co/t/can-logstash-lookup-an-id-from-ingested-logs-and-replace-it-with-its-corresponding-data-from-a-database-table/169868/1 "2019-02-25T15:52:19Z")

</div>

as above. can logstash do this kind of relational database FK=PK kind of thing?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 25, 2019, 4:46pm UTC](https://discuss.elastic.co/t/can-logstash-lookup-an-id-from-ingested-logs-and-replace-it-with-its-corresponding-data-from-a-database-table/169868/2 "2019-02-25T16:46:29Z")

</div>

A [jdbc\_static](https://www.elastic.co/guide/en/logstash/current/plugins-filters-jdbc_static.html) or [jdbc\_streaming](https://www.elastic.co/guide/en/logstash/current/plugins-filters-jdbc_streaming.html) filter might do what you want.

---

<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 25, 2019, 4:50pm UTC](https://discuss.elastic.co/t/can-logstash-lookup-an-id-from-ingested-logs-and-replace-it-with-its-corresponding-data-from-a-database-table/169868/3 "2019-03-25T16:50:19Z")

</div>

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