# Put SLM as per the documents complains about the index name?

**URL:** <https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923>\
**Category:** Elasticsearch\
**Created:** [March 10, 2020, 12:00pm UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923 "2020-03-10T12:00:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![runtman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/runtman/32/18136_2.png) [@runtman](https://discuss.elastic.co/u/runtman)\
**Post date:** [March 10, 2020, 12:00pm UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/1 "2020-03-10T12:00:19Z")

</div>

Hello, I use elastic cloud and apart from the automatic backups that take place, I'd like to use SLM so we can have 2 sets of backups. Disaster recovery etc.

So I have been following this:

[https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-lifecycle-management-api.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-lifecycle-management-api.html)

I created my s3 bucket and it appears to work fine, I did a test snapshot manually and it wrote it into the bucket all seems well.

But now when I try to create a simple policy:

```
PUT /_slm/policy/nightly-snapshots
{
  "schedule": "0 30 1 * * ?", 
  "name": "<actual-s3-aws-{now/d}>", 
  "repository": "actual-s3-aws", 
  "config": { 
    "indices": ["*"] 
  },
  "retention": { 
    "expire_after": "30d", 
    "min_count": 5, 
    "max_count": 50 
  }
}

```

I get the following error:

```
{
  "error" : {
    "root_cause" : [
      {
        "type" : "invalid_index_name_exception",
        "reason" : "Invalid index name [_slm], must not start with '_', '-', or '+'",
        "index_uuid" : "_na_",
        "index" : "_slm"
      }
    ],
    "type" : "invalid_index_name_exception",
    "reason" : "Invalid index name [_slm], must not start with '_', '-', or '+'",
    "index_uuid" : "_na_",
    "index" : "_slm"
  },
  "status" : 400
}

```

If I try to follow commands like `GET _slm/status` I get complaints about only allowing POST.

Is SLM just not available on elastic cloud or am I doing something really silly here?

---

<div class="post-metadata">

**Author:** ![runtman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/runtman/32/18136_2.png) [@runtman](https://discuss.elastic.co/u/runtman)\
**Post date:** [March 10, 2020, 1:27pm UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/2 "2020-03-10T13:27:30Z")

</div>

This document suggest I should be able to do it:

> The snapshot lifecycle management API and the features associated with it are currently available only in the Elastic Stack version 7.6 and above.

> **[Snapshot and restore | Elasticsearch Service Documentation | Elastic](https://www.elastic.co/guide/en/cloud/current/ec-snapshot-restore.html)**

---

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [March 12, 2020, 10:21am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/3 "2020-03-12T10:21:32Z")

</div>

Hi. I'm having the same problem.  
Any further updates on this case?

---

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [March 12, 2020, 11:08am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/4 "2020-03-12T11:08:57Z")

</div>

I figured out that the **slm** feature is not enabled. You can check that by using:

`GET _xpack?categories=features&pretty`

However, I don't know how to enable it in cloud service. I cannot update the **elasticsearch.yml** file. Any idea?

---

<div class="post-metadata">

**Author:** ![runtman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/runtman/32/18136_2.png) [@runtman](https://discuss.elastic.co/u/runtman)\
**Post date:** [March 12, 2020, 3:19pm UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/5 "2020-03-12T15:19:58Z")

</div>

It seems to be a bug. All of their documentation states it should be available, and if you look here it even has screenshots of sections within kibana that simply don't exist for elastic cloud yet.

I raised a support query to [elastic.co](http://elastic.co), here is the documents I refer to:

[https://www.elastic.co/guide/en/cloud/current/ec-restoring-snapshots.html](https://www.elastic.co/guide/en/cloud/current/ec-restoring-snapshots.html)

[https://www.elastic.co/guide/en/kibana/7.5/snapshot-repositories.html](https://www.elastic.co/guide/en/kibana/7.5/snapshot-repositories.html)

---

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [March 12, 2020, 4:20pm UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/6 "2020-03-12T16:20:29Z")

</div>

I think that maybe the SLM is disabled so Kibana doesn't show it.  
Do you know how to enable SLM in Elastic cloud? I cannot find any document related to this.

---

<div class="post-metadata">

**Author:** ![runtman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/runtman/32/18136_2.png) [@runtman](https://discuss.elastic.co/u/runtman)\
**Post date:** [March 12, 2020, 4:52pm UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/7 "2020-03-12T16:52:20Z")

</div>

According to the documents you need curl /\_slm/start but ES doesn't appear to recognise that command.

---

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [March 13, 2020, 1:03am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/8 "2020-03-13T01:03:14Z")

</div>

I think that `curl /_slm/start` is used to start the SLM (start the automation of taking snapshots). To enable this feature, we need to use another method.

---

<div class="post-metadata">

**Author:** ![runtman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/runtman/32/18136_2.png) [@runtman](https://discuss.elastic.co/u/runtman)\
**Post date:** [March 16, 2020, 10:19am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/9 "2020-03-16T10:19:19Z")

</div>

I got this back from support:

Snapshot Lifecycle Management (SLM) - We’ve added support for the SLM stack feature. This provides additional snapshot/restore capabilities beyond the native Cloud “snapshotter” feature such as a UI for managing custom snapshot repos and more flexibility when configuring snapshot schedules. ESS will also now use SLM for snapshot management for all clusters of version 7.6 or higher.

Migrating from index curation to ILM - For users that are running hot-warm deployments on older versions, we've added a "one-click" migration path from the native ESS index curation to stack ILM. This automated migration allows older hot-warm deployments to easily take advantage of all the benefits of ILM.

> FYI on SLM - Currently it is only available for new 7.6.0+ deployments and deployments that have upgraded to a 7.6.0+ version since March 12th ish. The gap here is for deployments that were already on 7.6.1 prior to March 12th, there is no newer version to upgrade to to kick off the migration to SLM. These deployments will either need to wait until 7.6.2 is out to upgrade to or get intervention from a Cloud engineer.

For the record, I went from 7.6.0 to 7.6.1 after this date and it still didn't enable.

---

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [March 17, 2020, 3:13am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/10 "2020-03-17T03:13:42Z")

</div>

I just updated from 7.6.0-\>7.6.1 yesterday but It still didn't work.

---

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [March 20, 2020, 3:23am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/11 "2020-03-20T03:23:55Z")

</div>

Any update on this??

---

<div class="post-metadata">

**Author:** ![runtman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/runtman/32/18136_2.png) [@runtman](https://discuss.elastic.co/u/runtman)\
**Post date:** [March 20, 2020, 7:58am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/12 "2020-03-20T07:58:51Z")

</div>

None ☹

---

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [March 23, 2020, 11:38am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/13 "2020-03-23T11:38:09Z")

</div>

I got the support from **[support@elastic.co](mailto:support@elastic.co)** and they helped me to enable the SLM from their backend. You should also ask them to do so.  
Good luck 😃

---

<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:** [April 20, 2020, 11:38am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923/14 "2020-04-20T11:38:10Z")

</div>

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