# Connecting Logstash to MSSQL without hardcording the password in configuration file

**URL:** <https://discuss.elastic.co/t/connecting-logstash-to-mssql-without-hardcording-the-password-in-configuration-file/160567>\
**Category:** Logstash\
**Created:** [December 12, 2018, 3:13pm UTC](https://discuss.elastic.co/t/connecting-logstash-to-mssql-without-hardcording-the-password-in-configuration-file/160567 "2018-12-12T15:13:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lal\_Prasad\_Rajendrap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lal_prasad_rajendrap/32/37560_2.png) [@Lal\_Prasad\_Rajendrap](https://discuss.elastic.co/u/Lal_Prasad_Rajendrap)\
**Post date:** [December 12, 2018, 3:13pm UTC](https://discuss.elastic.co/t/connecting-logstash-to-mssql-without-hardcording-the-password-in-configuration-file/160567/1 "2018-12-12T15:13:47Z")

</div>

Hi All,

Is there any way to connect Logstash with to MSSQL DB, without hard-cording the password in configuration file, since this is a security risk. Are there any options of encrypting the password etc to overcome the issue?

Regards  
Lal

---

<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:** [December 16, 2018, 8:52pm UTC](https://discuss.elastic.co/t/connecting-logstash-to-mssql-without-hardcording-the-password-in-configuration-file/160567/2 "2018-12-16T20:52:26Z")

</div>

See [https://www.elastic.co/guide/en/logstash/current/keystore.html](https://www.elastic.co/guide/en/logstash/current/keystore.html).

---

<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, 2019, 8:52pm UTC](https://discuss.elastic.co/t/connecting-logstash-to-mssql-without-hardcording-the-password-in-configuration-file/160567/3 "2019-01-13T20:52:44Z")

</div>

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