# Using Keystores - not working (v6.6.0)

**URL:** https://discuss.elastic.co/t/using-keystores-not-working-v6-6-0/167301
**Category:** Beats
**Created:** [February 6, 2019, 2:35pm UTC](https://discuss.elastic.co/t/using-keystores-not-working-v6-6-0/167301 "2019-02-06T14:35:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mark.lawton2](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mark.lawton2](https://discuss.elastic.co/u/mark.lawton2)
#### Post date: [February 6, 2019, 2:35pm UTC](https://discuss.elastic.co/t/using-keystores-not-working-v6-6-0/167301/1 "2019-02-06T14:35:32Z")

</div>

Hello,  
I'm trying to use a keystore value in my beat configuration and I can't seem to get it working...  
For example - I'm currently trying it with heartbeat.

THIS WORKS -  
output.elasticsearch:  
password: "clear\_text\_pw"

THIS DOES NOT WORK -  
output.elasticsearch:  
password: "${ES\_PWD}"

When starting heartbeat the log gives me:  
Exiting: error initializing publisher: missing field accessing 'output.elasticsearch.password' (source:'/etc/heartbeat/heartbeat.yml')

I definitely have the value set in the keystore -

# /usr/share/heartbeat/bin/heartbeat keystore list

KB\_PWD  
ES\_PWD

Any ideas on where I'm going wrong?

---

<div class="post-metadata">

### Author: ![mark.lawton2](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mark.lawton2](https://discuss.elastic.co/u/mark.lawton2)
#### Post date: [February 7, 2019, 9:04am UTC](https://discuss.elastic.co/t/using-keystores-not-working-v6-6-0/167301/2 "2019-02-07T09:04:47Z")

</div>

I think I've figured this out.

By default, the keystore is being created in path.home. My understanding is that by default it should be created in path.config?  
If I copy the keystore to my path.config all works fine.

However, this means each time I add a value to the keystore I need to remember to copy the keystore to path.config afterwards.

Is this a bug or have I misunderstood something?

---

<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 7, 2019, 11:04am UTC](https://discuss.elastic.co/t/using-keystores-not-working-v6-6-0/167301/3 "2019-03-07T11:04:48Z")

</div>

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