# How to do password variable substitution in beats install

**URL:** <https://discuss.elastic.co/t/how-to-do-password-variable-substitution-in-beats-install/194482>\
**Category:** Beats\
**Created:** [August 8, 2019, 5:25pm UTC](https://discuss.elastic.co/t/how-to-do-password-variable-substitution-in-beats-install/194482 "2019-08-08T17:25:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niudaye123](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@niudaye123](https://discuss.elastic.co/u/niudaye123)\
**Post date:** [August 8, 2019, 5:25pm UTC](https://discuss.elastic.co/t/how-to-do-password-variable-substitution-in-beats-install/194482/1 "2019-08-08T17:25:00Z")

</div>

Hi,  
I would like to do password variable substitution in the beats configuration, something like this: ${beats\_password}, should I set the password value in elasticsearch keystore for that? How the value get passed to beats connection?

Thanks!

---

<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:** [August 8, 2019, 7:50pm UTC](https://discuss.elastic.co/t/how-to-do-password-variable-substitution-in-beats-install/194482/2 "2019-08-08T19:50:39Z")

</div>

Filebeat has its own keystore. You can set the password there. See more here: [https://www.elastic.co/guide/en/beats/filebeat/current/keystore.html](https://www.elastic.co/guide/en/beats/filebeat/current/keystore.html)

---

<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:** [September 5, 2019, 9:59pm UTC](https://discuss.elastic.co/t/how-to-do-password-variable-substitution-in-beats-install/194482/3 "2019-09-05T21:59:02Z")

</div>

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