Hello everyone.
Elasticsearch 7.3.0
I need help with setup SLM for automate backups.
In terminal
elastic@elastic: curl -X PUT "localhost:9200/_slm/policy/nightly-snapshots?pretty" -H 'Content-Type: application/json' -d'
{
  "schedule": "0 30 1 * * ?", 
  "name": "<nightly-snap-{now/d}>", 
  "repository": "my_repository", 
  "config": { 
    "indices": ["*"] 
  },
  "retention": { 
    "expire_after": "30d", 
    "min_count": 5, 
    "max_count": 50 
  }
}
'
Error output
"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
What am I doing wrong?
Thank You.