# Unable to update index rollover

**URL:** <https://discuss.elastic.co/t/unable-to-update-index-rollover/272595>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 10, 2021, 3:02pm UTC](https://discuss.elastic.co/t/unable-to-update-index-rollover/272595 "2021-05-10T15:02:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Angel\_Morena\_Si](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_angel_morena_si/32/76522_2.png) [@Jose\_Angel\_Morena\_Si](https://discuss.elastic.co/u/Jose_Angel_Morena_Si)\
**Post date:** [May 10, 2021, 3:02pm UTC](https://discuss.elastic.co/t/unable-to-update-index-rollover/272595/1 "2021-05-10T15:02:04Z")

</div>

Hello there,

I am trying to modify the rollover conditions of a handful of indexes in my ES cluster.

**Elasticsearch version:** `7.11.2`  
**Winlogbeat version:** `7.11.2`

In order to do so I am using the following query:

```auto
curl -u elastic: ****-kv -X POST https://192.**.100.107:9200/myindex-*/_rollover?pretty -H 'Content-Type: application/json' -d'
{
  "conditions": {
    "max_age": "15d",
    "max_docs": 1000,
    "max_single_primary_size": "15gb"
  }
}
'

```

It seems Elasticsearch API returns a "Bad Request" error, because it is not able to parse the param "max\_single\_primary\_size".

The JSON response is the following:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "x_content_parse_exception",
        "reason" : "[6:5] [conditions] unknown field [max_single_primary_size]"
      }
    ],
    "type" : "x_content_parse_exception",
    "reason" : "[6:32] [rollover] failed to parse field [conditions]",
    "caused_by" : {
      "type" : "x_content_parse_exception",
      "reason" : "[6:5] [conditions] unknown field [max_single_primary_size]"
    }
  },
  "status" : 400
}

```

I followed the following link in the docs: [Rollover API | Elasticsearch Guide [7.x] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-rollover-index.html#rollover-index-api-example)

Am I missing any specific settings?

Thanks in advance!

Kind regards,

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 10, 2021, 5:04pm UTC](https://discuss.elastic.co/t/unable-to-update-index-rollover/272595/2 "2021-05-10T17:04:17Z")

</div>

The 7.x documentation is for themaster and refers to a version that has not yet been released. Always make sure you look at the docs for the particular version you are using. In this case it looks like the parameter you use was introduced in 7.12.

---

<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:** [June 7, 2021, 5:04pm UTC](https://discuss.elastic.co/t/unable-to-update-index-rollover/272595/3 "2021-06-07T17:04:53Z")

</div>

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