# Integrating postgresql with elk

**URL:** <https://discuss.elastic.co/t/integrating-postgresql-with-elk/138381>\
**Category:** Elasticsearch\
**Created:** [July 3, 2018, 12:28pm UTC](https://discuss.elastic.co/t/integrating-postgresql-with-elk/138381 "2018-07-03T12:28:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gokul\_15](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@Gokul\_15](https://discuss.elastic.co/u/Gokul_15)\
**Post date:** [July 3, 2018, 12:28pm UTC](https://discuss.elastic.co/t/integrating-postgresql-with-elk/138381/1 "2018-07-03T12:28:53Z")

</div>

Am new to elk,how can i integrate my postgres db with elastic search.. all have said about jdbc , i did not understand properly.. any body have suggesstion??

---

<div class="post-metadata">

**Author:** ![klof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/klof/32/31590_2.png) [@klof](https://discuss.elastic.co/u/klof)\
**Post date:** [July 3, 2018, 12:44pm UTC](https://discuss.elastic.co/t/integrating-postgresql-with-elk/138381/2 "2018-07-03T12:44:00Z")

</div>

By using logstash (input: jdbc), you'll be able to ingest your postgres data in elastic.

[https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html](https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html)

[https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 3, 2018, 4:09pm UTC](https://discuss.elastic.co/t/integrating-postgresql-with-elk/138381/3 "2018-07-03T16:09:28Z")

</div>

I shared most of my thoughts there: [http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/](http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/)

Basically, I'd recommend modifying the application layer if possible and send data to elasticsearch in the same "transaction" as you are sending your data to the database.

---

<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 31, 2018, 4:15pm UTC](https://discuss.elastic.co/t/integrating-postgresql-with-elk/138381/4 "2018-07-31T16:15:43Z")

</div>

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