# Keystore wrong location in version 7.2.0

**URL:** https://discuss.elastic.co/t/keystore-wrong-location-in-version-7-2-0/190603
**Category:** Beats
**Tags:** filebeat
**Created:** [July 15, 2019, 7:34pm UTC](https://discuss.elastic.co/t/keystore-wrong-location-in-version-7-2-0/190603 "2019-07-15T19:34:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zpraxis](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@zpraxis](https://discuss.elastic.co/u/zpraxis)
#### Post date: [July 15, 2019, 7:34pm UTC](https://discuss.elastic.co/t/keystore-wrong-location-in-version-7-2-0/190603/1 "2019-07-15T19:34:19Z")

</div>

Documentation says:

> Filebeat creates the keystore in the directory defined by the `path.config` configuration setting.

However, keystore is created in `/path_where_tar_was_extracted/filebeat-7.2.0-linux-x86_64/data/` .

I have already defined `path.config` variable accordingly in `filebeat.yml`, but the behavior is not the expected.

I would suggest either to update the documentation to say that it is stored in `path.data` (instead of `path.config`) or to make Filebeat store it in `path.config`.

---

<div class="post-metadata">

### Author: ![Andre\_Letterer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andre_letterer/32/42248_2.png) [@Andre\_Letterer](https://discuss.elastic.co/u/Andre_Letterer)
#### Post date: [July 16, 2019, 1:22am UTC](https://discuss.elastic.co/t/keystore-wrong-location-in-version-7-2-0/190603/2 "2019-07-16T01:22:30Z")

</div>

Hi,  
obviously you have found a documentation inaccuracy on page, because source code tells exactly that it will be created under the data path by default.  
[https://www.elastic.co/guide/en/beats/filebeat/current/keystore.html](https://www.elastic.co/guide/en/beats/filebeat/current/keystore.html)  
I will open an issue for that so that this will be corrected:

> <https://github.com/elastic/beats/blob/7.2/libbeat/tests/system/test_cmd_keystore.py#L17>

---

<div class="post-metadata">

### Author: ![zpraxis](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@zpraxis](https://discuss.elastic.co/u/zpraxis)
#### Post date: [July 16, 2019, 4:40pm UTC](https://discuss.elastic.co/t/keystore-wrong-location-in-version-7-2-0/190603/3 "2019-07-16T16:40:56Z")

</div>

Thanks!

---

<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 13, 2019, 4:41pm UTC](https://discuss.elastic.co/t/keystore-wrong-location-in-version-7-2-0/190603/4 "2019-08-13T16:41:01Z")

</div>

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