# Not able to connect to DB2 using JDBC\_Static Pluginwith securityMechanism=13

**URL:** <https://discuss.elastic.co/t/not-able-to-connect-to-db2-using-jdbc-static-pluginwith-securitymechanism-13/258807>\
**Category:** Logstash\
**Created:** [December 16, 2020, 7:02am UTC](https://discuss.elastic.co/t/not-able-to-connect-to-db2-using-jdbc-static-pluginwith-securitymechanism-13/258807 "2020-12-16T07:02:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgkumarmca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgkumarmca/32/76839_2.png) [@tgkumarmca](https://discuss.elastic.co/u/tgkumarmca)\
**Post date:** [December 16, 2020, 7:02am UTC](https://discuss.elastic.co/t/not-able-to-connect-to-db2-using-jdbc-static-pluginwith-securitymechanism-13/258807/1 "2020-12-16T07:02:34Z")

</div>

Hi All,

I'm trying to connect to the DB2 database where the security mechanism was configured as 13 using the JDBC\_Static plugin. I have tried passing the JDBC Connection as following ways. However, I don't have any luck. Any help would be very much appreciated!

1. "jdbc:db2://{DB2\_HOST}:{DB2\_PORT}/${DB2\_DB}:securityMechanism=13"

2. 

```
 sequel_opts => {
       jdbc_properties => {
         "securityMechanism" => "13"
       }

```

Thanks in advance,

---

<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:** [December 16, 2020, 4:27pm UTC](https://discuss.elastic.co/t/not-able-to-connect-to-db2-using-jdbc-static-pluginwith-securitymechanism-13/258807/2 "2020-12-16T16:27:11Z")

</div>

This has come up [before](https://discuss.elastic.co/t/how-to-connect-to-db2-using-jdbc-with-securitymechanism-13/249410), and I am not aware of any way of doing it.

---

<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:** [January 13, 2021, 4:27pm UTC](https://discuss.elastic.co/t/not-able-to-connect-to-db2-using-jdbc-static-pluginwith-securitymechanism-13/258807/3 "2021-01-13T16:27:11Z")

</div>

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