# Push PostgresDB Server complete data to logstash

**URL:** <https://discuss.elastic.co/t/push-postgresdb-server-complete-data-to-logstash/133204>\
**Category:** Logstash\
**Created:** [May 24, 2018, 5:34pm UTC](https://discuss.elastic.co/t/push-postgresdb-server-complete-data-to-logstash/133204 "2018-05-24T17:34:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushalshriyan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaushalshriyan/32/44563_2.png) [@kaushalshriyan](https://discuss.elastic.co/u/kaushalshriyan)\
**Post date:** [May 24, 2018, 5:34pm UTC](https://discuss.elastic.co/t/push-postgresdb-server-complete-data-to-logstash/133204/1 "2018-05-24T17:34:48Z")

</div>

Hi,

I have run /usr/share/logstash/bin/logstash-plugin install logstash-input-jdbc after following [https://www.elastic.co/blog/logstash-jdbc-input-plugin](https://www.elastic.co/blog/logstash-jdbc-input-plugin). Is there a way to import complete Postgres Database server data to logstash?

PostgresDB Server data -\> logstash -\> Elasticsearch

Below reference mentions about multiple\_sql\_statements.

[https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html#\_configuring\_multiple\_sql\_statements](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html#_configuring_multiple_sql_statements)

Thanks in Advance.

Best Regards,

---

<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:** [May 24, 2018, 8:38pm UTC](https://discuss.elastic.co/t/push-postgresdb-server-complete-data-to-logstash/133204/2 "2018-05-24T20:38:58Z")

</div>

The documentation you link to describe the procedure pretty well so I'm not sure what your question is about.

Are you sure you want to bulk-import a complete database? Elasticsearch doesn't support joins so a normalized data schema probably won't be optimal.

---

<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:** [June 21, 2018, 8:38pm UTC](https://discuss.elastic.co/t/push-postgresdb-server-complete-data-to-logstash/133204/3 "2018-06-21T20:38:59Z")

</div>

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