# Issue with metricbeat keystore integration

**URL:** https://discuss.elastic.co/t/issue-with-metricbeat-keystore-integration/278889
**Category:** Beats
**Tags:** metricbeat
**Created:** [July 16, 2021, 11:48am UTC](https://discuss.elastic.co/t/issue-with-metricbeat-keystore-integration/278889 "2021-07-16T11:48:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lokeshv1989](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@lokeshv1989](https://discuss.elastic.co/u/lokeshv1989)
#### Post date: [July 16, 2021, 11:48am UTC](https://discuss.elastic.co/t/issue-with-metricbeat-keystore-integration/278889/1 "2021-07-16T11:48:23Z")

</div>

Hi there, we are trying to use keystore in metricbeats to protect a password value  
but looks like the ${pwd} which we use in the metricbeat.yml is not able to reference the pwd value i have set in keystore  
basically looks like the keystore file is not being discovered by my metricbeat.yml  
Getting below error,  
Exiting: 1 error: host parsing failed for rabbitmq-queue: missing field accessing 'metrcbeat.modules.0.password'  
Any suggestions?

---

<div class="post-metadata">

### Author: ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)
#### Post date: [July 20, 2021, 1:33pm UTC](https://discuss.elastic.co/t/issue-with-metricbeat-keystore-integration/278889/2 "2021-07-20T13:33:21Z")

</div>

How does your metricbeat configuration looks like?

---

<div class="post-metadata">

### Author: ![lokeshv1989](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@lokeshv1989](https://discuss.elastic.co/u/lokeshv1989)
#### Post date: [July 20, 2021, 3:13pm UTC](https://discuss.elastic.co/t/issue-with-metricbeat-keystore-integration/278889/3 "2021-07-20T15:13:21Z")

</div>

hi Mario,  
Thanks for replying to the message.  
We actually fixed it by using the path.data parameter in the keystore create command and keystore add command.  
We referenced the path.data value from the install yml and used the same.  
The issue is resolved now.

.\metricbeat keystore create --path.data `"C:\ProgramData\metricbeat`"  
.\metricbeat keystore add rbqpwd --path.data `"C:\ProgramData\metricbeat`"

Regards  
Lokesh V

---

<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 17, 2021, 5:14pm UTC](https://discuss.elastic.co/t/issue-with-metricbeat-keystore-integration/278889/4 "2021-08-17T17:14:13Z")

</div>

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