Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Guide [8.17] ›Troubleshooting

Start Snapshot Lifecycle Management

Automatic snapshot lifecycle management is currently disabled. New backup snapshots will not be created automatically.

In order to start the snapshot lifecycle management service, follow these steps:

In order to start snapshot lifecycle management we need to go to Kibana and execute the start command.

Use Kibana

  1. Log in to the Elastic Cloud console.
  2. On the Elasticsearch Service panel, click the name of your deployment.

    If the name of your deployment is disabled your Kibana instances might be unhealthy, in which case please contact Elastic Support. If your deployment doesn’t include Kibana, all you need to do is enable it first.

  3. Open your deployment’s side navigation menu (placed under the Elastic logo in the upper left corner) and go to Dev Tools > Console.

    Kibana Console
  4. Start snapshot lifecycle management:

    resp = client.slm.start()
    print(resp)
    const response = await client.slm.start();
    console.log(response);
    POST _slm/start

    The response will look like this:

    {
      "acknowledged": true
    }
  5. Verify snapshot lifecycle management is now running:

    resp = client.slm.get_status()
    print(resp)
    response = client.slm.get_status
    puts response
    const response = await client.slm.getStatus();
    console.log(response);
    GET _slm/status

    The response will look like this:

    {
      "operation_mode": "RUNNING"
    }

Start snapshot lifecycle management:

resp = client.slm.start()
print(resp)
const response = await client.slm.start();
console.log(response);
POST _slm/start

The response will look like this:

{
  "acknowledged": true
}

Verify the snapshot lifecycle management is now running:

resp = client.slm.get_status()
print(resp)
response = client.slm.get_status
puts response
const response = await client.slm.getStatus();
console.log(response);
GET _slm/status

The response will look like this:

{
  "operation_mode": "RUNNING"
}

© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/start-slm.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API