# How to create Client while registering GCS as repository?

**URL:** https://discuss.elastic.co/t/how-to-create-client-while-registering-gcs-as-repository/353987
**Category:** Elasticsearch
**Tags:** docker, snapshot-and-restore
**Created:** [February 23, 2024, 1:14pm UTC](https://discuss.elastic.co/t/how-to-create-client-while-registering-gcs-as-repository/353987 "2024-02-23T13:14:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aditya\_rewari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aditya_rewari/32/123474_2.png) [@aditya\_rewari](https://discuss.elastic.co/u/aditya_rewari)
#### Post date: [February 23, 2024, 1:14pm UTC](https://discuss.elastic.co/t/how-to-create-client-while-registering-gcs-as-repository/353987/1 "2024-02-23T13:14:40Z")

</div>

I am trying to setup GCS (Google Client Storage) for archiving my logs through kibana-logstash

I am facing issue while registering repository  
I am unable to crate a client which is required while creating repository, owing to which I am not able to validate/verify by GCP bucket

 ![Screenshot from 2024-02-23 18-44-09](https://us1.discourse-cdn.com/elastic/original/3X/6/9/69d49de747a1456979993a011ad0575105007068.png)

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [February 23, 2024, 2:12pm UTC](https://discuss.elastic.co/t/how-to-create-client-while-registering-gcs-as-repository/353987/2 "2024-02-23T14:12:37Z")

</div>

> [@aditya\_rewari](#):
>
> I am unable to crate a client which is required while creating repository, owing to which I am not able to validate/verify by GCP bucket

You need to create a client before, adding it directly in the elasticsearch nodes.

This is the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/repository-gcs.html#repository-gcs-client).

---

<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 22, 2024, 2:12pm UTC](https://discuss.elastic.co/t/how-to-create-client-while-registering-gcs-as-repository/353987/3 "2024-03-22T14:12:38Z")

</div>

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