Elastic slm retention doesn't work

Hi,

I am trying to use the Elastic slm policy, the snapshot creation works fine, however, the delete part seems doesn't work at all:

Here is my config:
{
"nightly-snapshots" : {
"version" : 13,
"modified_date" : "2020-04-21T06:04:41.843Z",
"modified_date_millis" : 1587449081843,
"policy" : {
"name" : "<nightly-snap-{now/d}>",
"schedule" : "0 */3 * ? * *",
"repository" : "my_repository",
"config" : {
"indices" : [
"test_data3"
]
},
"retention" : {
"expire_after" : "3m",
"min_count" : 1,
"max_count" : 2
}
},
"last_success" : {
"snapshot_name" : "nightly-snap-2020.04.21-a4mkpod3spyh3xjgy90vbq",
"time_string" : "2020-04-21T06:21:00.247Z",
"time" : 1587450060247
},
"next_execution" : "2020-04-21T06:24:00.000Z",
"next_execution_millis" : 1587450240000,
"stats" : {
"policy" : "nightly-snapshots",
"snapshots_taken" : 25,
"snapshots_failed" : 0,
"snapshots_deleted" : 0,
"snapshot_deletion_failures" : 0
}
}

However, I can see all of my snapshots are saved into the repo and none of them are deleted.
nightly-snap-2020.04.21-fynpgcygqwkpt8cso5k2ra SUCCESS 1587447108 05:31:48 1587447108 05:31:48 200ms 1 1 0 1
nightly-snap-2020.04.21-o6bcqd1frwmft5nnw2o2ww SUCCESS 1587448837 06:00:37 1587448837 06:00:37 200ms 1 1 0 1
nightly-snap-2020.04.21-1ejgsxdbt0myfn3qjac-og SUCCESS 1587448839 06:00:39 1587448839 06:00:39 0s 1 1 0 1
nightly-snap-2020.04.21-jslsez2lscgc8q-aznkdia SUCCESS 1587448839 06:00:39 1587448839 06:00:39 0s 1 1 0 1
nightly-snap-2020.04.21-xl-z3hyetiuwxrfxtxsfva SUCCESS 1587448840 06:00:40 1587448840 06:00:40 0s 1 1 0 1
nightly-snap-2020.04.21-zvmueyqptsmk2ppil8oidq SUCCESS 1587449159 06:05:59 1587449159 06:05:59 0s 1 1 0 1
nightly-snap-2020.04.21-xfhz-coot3wdg4ifa_m5la SUCCESS 1587449339 06:08:59 1587449340 06:09:00 200ms 1 1 0 1
nightly-snap-2020.04.21-occfbueargws6rwaiibhcq SUCCESS 1587449519 06:11:59 1587449520 06:12:00 200ms 1 1 0 1
nightly-snap-2020.04.21-nkdv4dalqeabapwm04josw SUCCESS 1587449699 06:14:59 1587449699 06:14:59 0s 1 1 0 1
nightly-snap-2020.04.21-dcwweieorwkegolqcapjkw SUCCESS 1587449879 06:17:59 1587449880 06:18:00 200ms 1 1 0 1

Br,
Tim

I found the problem, I need enable the retention schedule time.

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