# Jdbc\_properties under sequel\_opts in jdbc plugin logstash

**URL:** <https://discuss.elastic.co/t/jdbc-properties-under-sequel-opts-in-jdbc-plugin-logstash/174962>\
**Category:** Logstash\
**Created:** [April 2, 2019, 10:13am UTC](https://discuss.elastic.co/t/jdbc-properties-under-sequel-opts-in-jdbc-plugin-logstash/174962 "2019-04-02T10:13:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rameshkv1989](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rameshkv1989](https://discuss.elastic.co/u/rameshkv1989)\
**Post date:** [April 2, 2019, 10:13am UTC](https://discuss.elastic.co/t/jdbc-properties-under-sequel-opts-in-jdbc-plugin-logstash/174962/1 "2019-04-02T10:13:53Z")

</div>

I need to pass two parameters "encryptionAlgorithm" and "securityMechanism" under jdbc\_properties , can anyone please advise if poosible. Below thing is not working

jdbc {  
sequel\_opts =\> {  
jdbc\_properties =\> {"securityMechanism" =\> "9", "encryptionAlgorithm" =\> "2"}  
}  
}

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [April 2, 2019, 2:20pm UTC](https://discuss.elastic.co/t/jdbc-properties-under-sequel-opts-in-jdbc-plugin-logstash/174962/2 "2019-04-02T14:20:45Z")

</div>

Are you sure that you need to do this in the `sequel_opts`?

Usually `sequel_opts` is for options to drive Sequel the 3rd party ORM that we use under the hood.  
See the [docs](https://sequel.jeremyevans.net/rdoc/files/doc/opening_databases_rdoc.html#label-General+connection+options)

You might have read this [paragraph on jdbc](https://sequel.jeremyevans.net/rdoc/files/doc/opening_databases_rdoc.html#label-jdbc+) where `jdbc_properties` is mentioned.

Have you tried to add those to the connection string?  
e.g. `jdbc:db2://<host>:<port>/<database>:securityMechanism=9;encryptionAlgorithm=2`

---

<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:** [April 30, 2019, 2:20pm UTC](https://discuss.elastic.co/t/jdbc-properties-under-sequel-opts-in-jdbc-plugin-logstash/174962/3 "2019-04-30T14:20:48Z")

</div>

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