# Encrypt the password in logstash elasticsearch output

**URL:** https://discuss.elastic.co/t/encrypt-the-password-in-logstash-elasticsearch-output/95447
**Category:** Elasticsearch
**Created:** [August 2, 2017, 4:21am UTC](https://discuss.elastic.co/t/encrypt-the-password-in-logstash-elasticsearch-output/95447 "2017-08-02T04:21:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)
#### Post date: [August 2, 2017, 4:21am UTC](https://discuss.elastic.co/t/encrypt-the-password-in-logstash-elasticsearch-output/95447/1 "2017-08-02T04:21:58Z")

</div>

Is there a way to encrypt the password in logstash elasticsearch output?

output {  
elasticsearch {  
...  
user =\> logstash\_internal  
password =\> **changeme**  
}  
}

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 2, 2017, 7:04am UTC](https://discuss.elastic.co/t/encrypt-the-password-in-logstash-elasticsearch-output/95447/2 "2017-08-02T07:04:15Z")

</div>

Hey,

right now there isnt, see this logstash issue: [https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/143](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/143)

You could maybe prevent using passwords altogether by using client side certificates, so only systems that do have the right certs are allowed to connect to your secured Elasticsearch cluster.

--Alex

---

<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: [August 30, 2017, 7:04am UTC](https://discuss.elastic.co/t/encrypt-the-password-in-logstash-elasticsearch-output/95447/3 "2017-08-30T07:04:31Z")

</div>

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