# Password encryption in Logstash

**URL:** https://discuss.elastic.co/t/password-encryption-in-logstash/113694
**Category:** Logstash
**Created:** [January 1, 2018, 1:18pm UTC](https://discuss.elastic.co/t/password-encryption-in-logstash/113694 "2018-01-01T13:18:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sai\_Jana\_Selvakumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sai_jana_selvakumar/32/24884_2.png) [@Sai\_Jana\_Selvakumar](https://discuss.elastic.co/u/Sai_Jana_Selvakumar)
#### Post date: [January 1, 2018, 1:18pm UTC](https://discuss.elastic.co/t/password-encryption-in-logstash/113694/1 "2018-01-01T13:18:39Z")

</div>

Hi,

Is there any way to encrypt elasticsearch passwords in logstash. Instead of directly exposing it

```
				elasticsearch { 
			hosts => ["host"]
			index => "indexname"
			user => "elastic"
			password => "changeme"
```

---

<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: [January 1, 2018, 2:42pm UTC](https://discuss.elastic.co/t/password-encryption-in-logstash/113694/2 "2018-01-01T14:42:35Z")

</div>

No, that's not possible.

---

<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 29, 2018, 2:51pm UTC](https://discuss.elastic.co/t/password-encryption-in-logstash/113694/3 "2018-01-29T14:51:23Z")

</div>

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