# Unknown setting \[index.lifecycl.parse\_origination\_date\]

**URL:** https://discuss.elastic.co/t/unknown-setting-index-lifecycl-parse-origination-date/279937
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [July 29, 2021, 7:01am UTC](https://discuss.elastic.co/t/unknown-setting-index-lifecycl-parse-origination-date/279937 "2021-07-29T07:01:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)
#### Post date: [July 29, 2021, 7:01am UTC](https://discuss.elastic.co/t/unknown-setting-index-lifecycl-parse-origination-date/279937/1 "2021-07-29T07:01:00Z")

</div>

I wan to reindex my old index.If i do reindexing it will create new index and the old index which should be deleted on 30 days of rollover (that time) and new index will delete after 30 days even if delete old index manually.

```auto
PUT %3Clog-wlb-sysmon-reindex-%7Bnow%2Fd%7D-000008%3E
{
"aliases": {
   "log-wlb-sysmon": {
      "is_write_index": false
   }
 }
 , "settings": {
   "index.lifecycl.parse_origination_date":true
 }
}

```

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "unknown setting [index.lifecycl.parse_origination_date] did you mean any of [index.lifecycle.parse_origination_date, index.lifecycle.origination_date]?"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "unknown setting [index.lifecycl.parse_origination_date] did you mean any of [index.lifecycle.parse_origination_date, index.lifecycle.origination_date]?"
  },
  "status" : 400
}

```

I want that my new index will be delete automatically like if we 30 days earlier and it has 5 days remain then it should be deleted after 5 days not to complete 30 days

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [July 29, 2021, 8:01am UTC](https://discuss.elastic.co/t/unknown-setting-index-lifecycl-parse-origination-date/279937/2 "2021-07-29T08:01:44Z")

</div>

Hey!

Looks like a missing `e` in `lifecycle` in `index.lifecycl.parse_origination_date` to me, as mentioned in the error. Or is it not working as expected, if you fix this?

---

<div class="post-metadata">

### Author: ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)
#### Post date: [July 30, 2021, 9:17am UTC](https://discuss.elastic.co/t/unknown-setting-index-lifecycl-parse-origination-date/279937/3 "2021-07-30T09:17:36Z")

</div>

it worked for me but this is not the case what i expected  
Basically my aim is reindex the data but the index that i am reindexing is 1 day old and it has ilm property like hot warm delete phase so this one day old index was in warm phase and it is going to be deleted on next days  
So when i reindex the data to new index which has the same mapping in template ,this new index should be warm phase it should be deleted on next day but in this case this new index is warm phase and it is going to be delete on next 2 days it should be warm phase and deleted on next day

i want that this new index should work like old index.  
so i tried this

`PUT %3Clog-wlb-sysmon-reindex-%7Bnow%2Fd%7D-000029%3E`

```auto
{
"aliases": {
   "log-wlb-sysmon": {
      "is_write_index": false   
   }
 }
 , "settings": {
   "number_of_replicas": 0,
   "index.lifecycle.parse_origination_date":true
 }
}

```

which give me this information in log entry  
`illegal_argument_exception: index [log-wlb-sysmon-reindex-2021.07.30-000029] is not the write index for alias [log-wlb-sysmon]`  
after that performed this step

```auto
POST _aliases
{
  "actions": [
    {
      "add": {
        "index": "log-wlb-sysmon-2021.07.29-000029",
        "alias": "log-wlb-sysmon",
        "is_write_index": false
      }
    }, {
      "add": {
        "index": "log-wlb-sysmon-reindex-2021.07.30-000029",
        "alias": "log-wlb-sysmon",
        "is_write_index": true
      }
    }
  ]
}

```

then last i did this

```auto
POST _reindex?max_docs=1437456&wait_for_completion=false
{
  "source": {
    "index": "log-wlb-sysmon-2021.07.29-000029"
  }
  , "dest": {
    "index": "log-wlb-sysmon-reindex-2021.07.30-000029"
  }
}

```

---

<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: [August 27, 2021, 9:18am UTC](https://discuss.elastic.co/t/unknown-setting-index-lifecycl-parse-origination-date/279937/4 "2021-08-27T09:18:14Z")

</div>

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