# Elasticsearch SLM error

**URL:** <https://discuss.elastic.co/t/elasticsearch-slm-error/236767>\
**Category:** Elasticsearch\
**Tags:** slm-snapshot-lifecycle-management\
**Created:** [June 11, 2020, 5:54pm UTC](https://discuss.elastic.co/t/elasticsearch-slm-error/236767 "2020-06-11T17:54:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zil2020](https://avatars.discourse-cdn.com/v4/letter/z/c77e96/32.png) [@zil2020](https://discuss.elastic.co/u/zil2020)\
**Post date:** [June 11, 2020, 5:54pm UTC](https://discuss.elastic.co/t/elasticsearch-slm-error/236767/1 "2020-06-11T17:54:38Z")

</div>

Hi,  
I have Elasticsearch 7.7.1 and i want to configure SLM policy with cron schedule that triggers multiple times.

**In terminal**

```auto
curl -X PUT "localhost:9200/_slm/policy/nightly-snapshots?pretty" -H 'Content-Type: application/json' -d'
{
  "trigger" : {
    "schedule" : {
      "cron" : [
        "0 0 13 * * ?",
        "0 0 23 * * ?"
      ]
    }
  }
  "name": "<nightly-snap-{now/d}>", 
  "repository": "myrepo", 
  "config": { 
    "indices": ["*"] 
  },
  "retention": { 
    "expire_after": "30d", 
    "min_count": 5, 
    "max_count": 50 
  }
}
'

```

**Error output**

```auto
"error" : {
    "root_cause" : [
      {
        "type" : "x_content_parse_exception",
        "reason" : "[10:3] [snapshot_lifecycle] failed to parse object"
      }
    ],
    "type" : "x_content_parse_exception",
    "reason" : "[10:3] [snapshot_lifecycle] failed to parse object",
    "caused_by" : {
      "type" : "json_parse_exception",
      "reason" : "Unexpected character ('\"' (code 34)): was expecting comma to separate Object entries\n at [Source: (org.elasticsearch.transport.netty4.ByteBufStreamInput); line: 11, column: 4]"
    }
  },
  "status" : 400

```

What am I doing wrong? Thank You.

---

<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:** [July 9, 2020, 5:54pm UTC](https://discuss.elastic.co/t/elasticsearch-slm-error/236767/2 "2020-07-09T17:54:38Z")

</div>

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