Snapshotting to Azure Storage for Elasticsearch 5.x and 6.x

edit

With Elastic Cloud Enterprise, you can enable your Elasticsearch clusters to regularly snapshot data to Microsoft Azure Storage.

Snapshotting to Azure Storage is supported in version 5.X or 6.2.X and later. If you have a cluster other these versions, please upgrade before proceeding.

  1. Add the Azure repository plugin as a custom plugin.
  2. Configure the snapshot repository:

    1. From the Platform menu, select Repositories
    2. For type, select Advanced.
    3. Add a new repository that includes your Azure account name and the details for the Azure storage container.
    4. If needed, set additional options for configuring chunk_size, compressions, and retries. See the Azure repository configuration settings for more information.

      {
          "type": "azure",
          "settings": {
              "account": "MY_ACCOUNT",
              "container": "BACKUP-CONTAINER"
        }
      }
    5. Save your changes.
  3. Add the snapshot repository configuration to the Elasticsearch cluster through the Elasticsearch User Settings:

    1. Create a custom deployment with an Elasticsearch cluster that has the repository-azure plugin enabled.

      If you have an existing Elastic cluster you can also add the repository-azure plugin by editing the configuration.

    2. Go to the Elasticsearch plugins and settings section and edit the YAML file to add the Azure configuration with your Azure bucket ID and key.

      cloud:
          azure:
              storage:
                  my_account:
                      account: "AZURE STORAGE ACCOUNT NAME"
                      key: "AZURE STORAGE ACCOUNT KEY"
    3. Choose the Snapshot Repository that you created.
    4. Click Create deployment.

The cluster should then have snapshots enabled and and begins snapshotting either in the default interval of 30 minutes or immediately, depending on what you have specified.