# Set "ssl" parameter for jdbc input plugin

**URL:** <https://discuss.elastic.co/t/set-ssl-parameter-for-jdbc-input-plugin/91676>\
**Category:** Logstash\
**Created:** [July 3, 2017, 4:29pm UTC](https://discuss.elastic.co/t/set-ssl-parameter-for-jdbc-input-plugin/91676 "2017-07-03T16:29:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Demidenko](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sergey\_Demidenko](https://discuss.elastic.co/u/Sergey_Demidenko)\
**Post date:** [July 3, 2017, 4:29pm UTC](https://discuss.elastic.co/t/set-ssl-parameter-for-jdbc-input-plugin/91676/1 "2017-07-03T16:29:33Z")

</div>

Hi.  
My Postgres connection requires setting two parameters:  
ssl=true  
sslmode=require  
I can't find any options to set these parameters.

Is it possible to use jdbc input plugin in this case?

---

<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:** [July 3, 2017, 4:57pm UTC](https://discuss.elastic.co/t/set-ssl-parameter-for-jdbc-input-plugin/91676/2 "2017-07-03T16:57:48Z")

</div>

Include those values in the connection string, see [https://jdbc.postgresql.org/documentation/head/connect.html](https://jdbc.postgresql.org/documentation/head/connect.html).

---

<div class="post-metadata">

**Author:** ![Sergey\_Demidenko](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sergey\_Demidenko](https://discuss.elastic.co/u/Sergey_Demidenko)\
**Post date:** [July 3, 2017, 5:31pm UTC](https://discuss.elastic.co/t/set-ssl-parameter-for-jdbc-input-plugin/91676/3 "2017-07-03T17:31:27Z")

</div>

many thanks. I've found this solution also) It works like this  
jdbc\_connection\_string =\> "jdbc:postgresql://xx.xx.xx.xx:5432/postgres?ssl=true&sslmode=require"

---

<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, 2017, 5:32pm UTC](https://discuss.elastic.co/t/set-ssl-parameter-for-jdbc-input-plugin/91676/4 "2017-07-31T17:32:15Z")

</div>

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