# Elastic search snopshot azure repoistory

**URL:** <https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225>\
**Category:** Elasticsearch\
**Created:** [May 22, 2019, 12:37pm UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225 "2019-05-22T12:37:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 22, 2019, 12:37pm UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/1 "2019-05-22T12:37:34Z")

</div>

i need to save the elastic search snapshot in azure blobs container.  
how to config the elastic search and azure repository?  
i already installed azure repository plug in elastic Search.but not its show settings\_exception ("Invalid azure client settings with name [default]") in kibana .

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 22, 2019, 1:51pm UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/2 "2019-05-22T13:51:25Z")

</div>

Not sure what is your version but here is the latest documentation available: [https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-azure.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-azure.html)

If you still have troubles after reading and following the instructions, please share details like configuration file, all steps you did, the elasticsearch logs, ...

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 23, 2019, 3:00am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/3 "2019-05-23T03:00:18Z")

</div>

hi,  
i am using then current version 7.1 but try add the storage account and key could not type in command prompt

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 23, 2019, 3:52am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/4 "2019-05-23T03:52:04Z")

</div>

hi,  
also attach the yml file in Elasticsearh

# ======================== Elasticsearch Configuration =========================

# 

# NOTE: Elasticsearch comes with reasonable defaults for most settings.

# Before you set out to tweak and tune the configuration, make sure you

# understand what are you trying to accomplish and the consequences.

# 

# The primary way of configuring a node is via this file. This template lists

# the most important settings you may want to configure for a production cluster.

# 

# Please consult the documentation for further information on configuration options:

# [https://www.elastic.co/guide/en/elasticsearch/reference/index.html](https://www.elastic.co/guide/en/elasticsearch/reference/index.html)

# 

# ---------------------------------- Cluster -----------------------------------

# 

# Use a descriptive name for your cluster:

# 

#cluster.name: my-application

# 

# ------------------------------------ Node ------------------------------------

# 

# Use a descriptive name for the node:

# 

#node.name: node-1

# 

# Add custom attributes to the node:

# 

#node.attr.rack: r1

# 

# ----------------------------------- Paths ------------------------------------

# 

# Path to directory where to store the data (separate multiple locations by comma):

# 

#path.data: /path/to/data

# 

# Path to log files:

# 

#path.logs: /path/to/logs

# 

# ----------------------------------- Memory -----------------------------------

# 

# Lock the memory on startup:

# 

#bootstrap.memory\_lock: true

# 

# Make sure that the heap size is set to about half the memory available

# on the system and that the owner of the process is allowed to use this

# limit.

# 

# Elasticsearch performs poorly when the system is swapping the memory.

# 

# ---------------------------------- Network -----------------------------------

# 

# Set the bind address to a specific IP (IPv4 or IPv6):

# 

#network.host: 192.168.0.1

# 

# Set a custom port for HTTP:

# 

# http.port: 9200

# For more information, consult the network module documentation.

# 

# --------------------------------- Discovery ----------------------------------

# 

# Pass an initial list of hosts to perform discovery when this node is started:

# The default list of hosts is ["127.0.0.1", "[::1]"]

# 

#discovery.seed\_hosts: ["host1", "host2"]

# 

# Bootstrap the cluster using an initial set of master-eligible nodes:

# 

#cluster.initial\_master\_nodes: ["node-1", "node-2"]

# 

# For more information, consult the discovery and cluster formation module documentation.

# 

# ---------------------------------- Gateway -----------------------------------

# 

# Block initial recovery after a full cluster restart until N nodes are started:

# 

#gateway.recover\_after\_nodes: 3

# 

# For more information, consult the gateway module documentation.

# 

# ---------------------------------- Various -----------------------------------

# 

# Require explicit names when deleting indices:

# 

#action.destructive\_requires\_name: true

# path.repo: "[https://pathfinderdiag631.blob.core.windows.net/dbbackup](https://pathfinderdiag631.blob.core.windows.net/dbbackup)"

# script.engine.groovy.inline.search: on

# script.engine.groovy.inline.aggs: on

# script.groovy.sandbox.enabled: true

# path.repo: ["[https://pathfinderdiag631.blob.core.windows.net/dbbackup](https://pathfinderdiag631.blob.core.windows.net/dbbackup)"]

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 5:31am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/5 "2019-05-23T05:31:12Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 5:32am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/6 "2019-05-23T05:32:02Z")

</div>

Can you share the exact commands you used and what is the output? (No screenshot please).

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 23, 2019, 9:57am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/7 "2019-05-23T09:57:46Z")

</div>

```auto
PUT _snapshot/my_backup1
{
    "type": "azure"
}

```

```auto

```

{  
"error": {  
"root\_cause": [  
{  
"type": "settings\_exception",  
"reason": "Invalid azure client settings with name [default]"  
}  
],  
"type": "settings\_exception",  
"reason": "Invalid azure client settings with name [default]",  
"caused\_by": {  
"type": "illegal\_argument\_exception",  
"reason": "Invalid connection string."  
}  
},  
"status": 500  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 10:13am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/8 "2019-05-23T10:13:29Z")

</div>

So you did not follow the very first steps of the guide? [https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-azure-usage.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-azure-usage.html)

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 23, 2019, 10:40am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/9 "2019-05-23T10:40:17Z")

</div>

thank you dadoonet  
i am able to create snopshot now , but i can't find any backups in azure blobs storage containers

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 23, 2019, 11:26am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/10 "2019-05-23T11:26:26Z")

</div>

thank you dadoonet

Please ignore the Previous comment, how to restore the snapshot in cluster

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 12:38pm UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/11 "2019-05-23T12:38:16Z")

</div>

I think the documentation says it all: [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#\_restore](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_restore)

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 24, 2019, 4:37am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/12 "2019-05-24T04:37:08Z")

</div>

hi,  
i put the snapshot in elastic search its also stored in azure blob container, but i can't get any snapshots details

```
    PUT _snapshot/Test
{
    "type": "azure",
    "settings": {
       "container": "test",
         "compress": true,
        "base_path": "CarsElasticSearch\\Test"
    }
}

GET /_cat/repositories

```

GET /\_snapshot/Test/\_all -- run this Comment i will get the below output

**output**

{  
"snapshots" :   
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2019, 5:03am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/13 "2019-05-24T05:03:54Z")

</div>

What is the output of the first command?

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 24, 2019, 5:10am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/14 "2019-05-24T05:10:11Z")

</div>

first output is  
{  
"acknowledged" : true  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2019, 5:23am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/16 "2019-05-24T05:23:36Z")

</div>

Just realized that you did not run any snapshot right? As the guide says, something like:

```
PUT /_snapshot/my_backup/snapshot_1?wait_for_completion=true
```

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 24, 2019, 6:19am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/17 "2019-05-24T06:19:44Z")

</div>

```
PUT _snapshot/Testing1
{
    "type": "azure",
    "settings": {
       "container": "dbbackup",
         "compress": true,
        "base_path": "CarsElasticSearch\\Testing1"
    }
}

PUT /_snapshot/Testing1/snapshot_1?wait_for_completion=true

```

**output**

```
{
  "snapshot" : {
    "snapshot" : "snapshot_1",
    "uuid" : "YGCqKedAQf-qrs35b_ba4A",
    "version_id" : 7010099,
    "version" : "7.1.0",
    "indices" : [
      "myindex",
      "carstestindex",
      "testindex",
      ".kibana_1",
      ".kibana_task_manager",
      "testing"
    ],
    "include_global_state" : true,
    "state" : "SUCCESS",
    "start_time" : "2019-05-24T06:16:51.528Z",
    "start_time_in_millis" : 1558678611528,
    "end_time" : "2019-05-24T06:17:05.112Z",
    "end_time_in_millis" : 1558678625112,
    "duration_in_millis" : 13584,
    "failures" : [],
    "shards" : {
      "total" : 6,
      "failed" : 0,
      "successful" : 6
    }
  }
}

```

after run this comment

`GET /_snapshot/Testing1/_status`

**output**

```
{
  "snapshots" : []
}
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2019, 6:39am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/18 "2019-05-24T06:39:36Z")

</div>

What is the output of:

```auto
GET /_snapshot/Testing1/_all

```

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 24, 2019, 6:40am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/19 "2019-05-24T06:40:42Z")

</div>

**output**  
{  
"snapshots" :   
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2019, 6:53am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/20 "2019-05-24T06:53:34Z")

</div>

If all what you shared here is exact, then that could be a bug.  
I did not test myself Azure snapshots for a long time so I can't tell. Might worth opening an issue in Elasticsearch github repository sharing all information and a link to this discussion?

---

<div class="post-metadata">

**Author:** ![tamil6593](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tamil6593](https://discuss.elastic.co/u/tamil6593)\
**Post date:** [May 24, 2019, 6:57am UTC](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225/21 "2019-05-24T06:57:32Z")

</div>

thank you david,

I made small mistake but now it will work fine.  
thanks for response 😀😀😀

[Next page](https://discuss.elastic.co/t/elastic-search-snopshot-azure-repoistory/182225.md?page=2)
