# GCS Keystore

**URL:** <https://discuss.elastic.co/t/gcs-keystore/276869>\
**Category:** Elasticsearch\
**Created:** [June 24, 2021, 5:11am UTC](https://discuss.elastic.co/t/gcs-keystore/276869 "2021-06-24T05:11:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidwebb535649](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@davidwebb535649](https://discuss.elastic.co/u/davidwebb535649)\
**Post date:** [June 24, 2021, 5:11am UTC](https://discuss.elastic.co/t/gcs-keystore/276869/1 "2021-06-24T05:11:00Z")

</div>

I have a Google Cloud instance I would like to work with. The GCS plugin is installed but I'm having trouble adding the Google credentials to the Elastic Keystore but I keep getting an error I have not been able to solve or find much about online. Here is the code:

\bin\>elasticsearch-keystore add-file gcs.client.default.credentials\_file filepath\gcskey.json

A tool for managing settings stored in the elasticsearch keystore

Non-option arguments:  
command

Option Description

* * *

-E Configure a setting  
-h, --help Show help  
-s, --silent Show minimal output  
-v, --verbose Show verbose output  
ERROR: settings and filenames must come in pairs

I've tried multiple different things but cannot solve this problem to get the GCS creds into the elastic keystore.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 24, 2021, 5:17am UTC](https://discuss.elastic.co/t/gcs-keystore/276869/2 "2021-06-24T05:17:31Z")

</div>

Welcome to our community! 😃

Did you try that with the `-v` option?

---

<div class="post-metadata">

**Author:** ![davidwebb535649](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@davidwebb535649](https://discuss.elastic.co/u/davidwebb535649)\
**Post date:** [June 24, 2021, 8:58pm UTC](https://discuss.elastic.co/t/gcs-keystore/276869/3 "2021-06-24T20:58:52Z")

</div>

Yes, and I get the same output. I have redownloaded the keys, changed the file path, security settings. I really have no idea what is causing the problem here

---

<div class="post-metadata">

**Author:** ![davidwebb535649](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@davidwebb535649](https://discuss.elastic.co/u/davidwebb535649)\
**Post date:** [June 24, 2021, 11:16pm UTC](https://discuss.elastic.co/t/gcs-keystore/276869/4 "2021-06-24T23:16:40Z")

</div>

So solved it. Don't know exactly what the problem is but I manually deleted the generated keystore and the keystore.tmp. Regenerated the keystore. Put the GCS creds into the keystore and problem solved. Not sure what the problem was but that is all I did

---

<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:** [July 22, 2021, 11:16pm UTC](https://discuss.elastic.co/t/gcs-keystore/276869/5 "2021-07-22T23:16:59Z")

</div>

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