Cant create snapshot life cycle policy

Hey All,
Trying to create snapshot life cycle policy according to the knowledge article

PUT /_slm/policy/daily-snapshots
{
  "schedule": "0 30 12 * * ?", 
  "name": "snapshot-daily-snap-{now/d}", 
  "repository": "elastic_backup", 
  "config": { 
    "indices": ["monitoring*", "rollup*"], 
    "ignore_unavailable": false,
    "include_global_state": false
  },
  "retention": { 
    "expire_after": "90d"
  }
}

I am getting an 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
}

Any idea?

Thanks!
:airplane:

What is the output of:

GET /

?

Hey @dadoonet

This is the response:

{
  "name" : "NAME",
  "cluster_name" : "CLUSTER_NAME",
  "cluster_uuid" : "O_tH6qaKRHWJ2d1TcWyH1w",
  "version" : {
    "number" : "7.3.2",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "1c1faf1",
    "build_date" : "2019-09-06T14:40:30.409026Z",
    "build_snapshot" : false,
    "lucene_version" : "8.1.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

What are you looking for?

Cheers!

I think snapshot lifecycle management was introduced in Elasticsearch 7.4 so you will need to upgrade to use it.

Just found this knowledge article and it say it is supported from 7.6

Any way to automate snapshots with 7.3? Any workaround?

Thanks!

You can use Curator to create snapshots but it is an external component run from cron and does as far as I know not manage snapshot housekeeping. I would recommend upgrading.

Cheers mate!

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