# Filebeat Keystore broken

**URL:** https://discuss.elastic.co/t/filebeat-keystore-broken/173802
**Category:** Beats
**Tags:** filebeat
**Created:** [March 25, 2019, 5:26pm UTC](https://discuss.elastic.co/t/filebeat-keystore-broken/173802 "2019-03-25T17:26:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Alive](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Alive](https://discuss.elastic.co/u/Alive)
#### Post date: [March 25, 2019, 5:26pm UTC](https://discuss.elastic.co/t/filebeat-keystore-broken/173802/1 "2019-03-25T17:26:26Z")

</div>

Hi All,

seems that if I add a keystore and the password used has a comma (example: HDiwmdei,dd\*d ), the keystore doesn't work.

The error at the startup is:  
filebeat test config  
Exiting: error initializing publisher: can not convert 'object' into 'string' accessing 'output.elasticsearch.password' (source:'/etc/filebeat/filebeat.yml')

Is there a way to use also password with a comma in the keystore?

Thanks in advance

---

<div class="post-metadata">

### Author: ![pmercado](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pmercado](https://discuss.elastic.co/u/pmercado)
#### Post date: [March 25, 2019, 5:31pm UTC](https://discuss.elastic.co/t/filebeat-keystore-broken/173802/2 "2019-03-25T17:31:43Z")

</div>

Hi @Alive,

have you tried quoting the password at `output.elasticsearch.password`?

---

<div class="post-metadata">

### Author: ![Alive](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Alive](https://discuss.elastic.co/u/Alive)
#### Post date: [March 25, 2019, 5:47pm UTC](https://discuss.elastic.co/t/filebeat-keystore-broken/173802/3 "2019-03-25T17:47:56Z")

</div>

Hi @pmercado

If I use the password in clear with quote, it works.  
But I have to use the keystore for the secret.

---

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [March 26, 2019, 9:34am UTC](https://discuss.elastic.co/t/filebeat-keystore-broken/173802/4 "2019-03-26T09:34:00Z")

</div>

I have reproduced the issue. I have followed the documentation and set a password which contains a comma. I got the same error message as you.

Do you mind opening an issue on Github? [https://github.com/elastic/beats/issues/new?template=bug-report.md](https://github.com/elastic/beats/issues/new?template=bug-report.md)

---

<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: [April 23, 2019, 9:36am UTC](https://discuss.elastic.co/t/filebeat-keystore-broken/173802/5 "2019-04-23T09:36:08Z")

</div>

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