# Encryption in Logstash 5.6

**URL:** <https://discuss.elastic.co/t/encryption-in-logstash-5-6/169456>\
**Category:** Logstash\
**Created:** [February 21, 2019, 3:53pm UTC](https://discuss.elastic.co/t/encryption-in-logstash-5-6/169456 "2019-02-21T15:53:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kb2295](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kb2295](https://discuss.elastic.co/u/kb2295)\
**Post date:** [February 21, 2019, 3:53pm UTC](https://discuss.elastic.co/t/encryption-in-logstash-5-6/169456/1 "2019-02-21T15:53:03Z")

</div>

Hello,

I have a logstash configuration file with JDBC and Kibana passwords in plaintext. Wondering how I can go about encrypting both of those passwords.  
Logstash-Keystore seems like it is only available in 6.x versions and I was unable to make use of it in 5.6

Can someone help me figure out how to get rid of the plaintext passwords?

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [February 23, 2019, 8:11am UTC](https://discuss.elastic.co/t/encryption-in-logstash-5-6/169456/2 "2019-02-23T08:11:08Z")

</div>

The keystore integration feature was added in Logstash 6.

IIRC, it was possible to use environment variables in Logstash 5.x, which can be used with service automation to obscure credentials, at least keeping them out of the pipeline configuration.

---

<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:** [March 23, 2019, 8:11am UTC](https://discuss.elastic.co/t/encryption-in-logstash-5-6/169456/3 "2019-03-23T08:11:12Z")

</div>

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