# 7.2 Rollover Command Fails

**URL:** <https://discuss.elastic.co/t/7-2-rollover-command-fails/347981>\
**Category:** Elastic Training\
**Created:** [November 26, 2023, 1:06am UTC](https://discuss.elastic.co/t/7-2-rollover-command-fails/347981 "2023-11-26T01:06:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Clairmont](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_clairmont/32/125860_2.png) [@Matt\_Clairmont](https://discuss.elastic.co/u/Matt_Clairmont)\
**Post date:** [November 26, 2023, 1:06am UTC](https://discuss.elastic.co/t/7-2-rollover-command-fails/347981/1 "2023-11-26T01:06:06Z")

</div>

Course: Certified Elasticsearch Engineer  
Version: 8.1

Hi, in module 7.2, at the rollover step to refrewsh component template, the rollover solution fails due to missing items in the payload.  
`POST my_metrics-service.status-dev/_rollover/`

```auto
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "rollover target is a [concrete index] but one of [alias,data_stream] was expected"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "rollover target is a [concrete index] but one of [alias,data_stream] was expected"
  },
  "status" : 400
}

```

When referencing the docs for this, it appears these parameters are optional. What should the solution be given copy/pasting all of the code snippets still generates the above error?

Thanks!

---

<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:** [November 26, 2023, 9:58am UTC](https://discuss.elastic.co/t/7-2-rollover-command-fails/347981/2 "2023-11-26T09:58:15Z")

</div>

One possibility is that you [have not created the index as a rollover index](https://www.elastic.co/guide/en/elasticsearch/reference/8.11/ilm-rollover.html), which is required for rollover to work. Exactly how did you create the index?

---

<div class="post-metadata">

**Author:** ![Matt\_Clairmont](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_clairmont/32/125860_2.png) [@Matt\_Clairmont](https://discuss.elastic.co/u/Matt_Clairmont)\
**Post date:** [November 26, 2023, 12:16pm UTC](https://discuss.elastic.co/t/7-2-rollover-command-fails/347981/3 "2023-11-26T12:16:07Z")

</div>

Hey Christian ,

I followed the labs from 7.1 and 7.2 on my own then checked the solutions to ensure I was correct.

---

<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:** [November 26, 2023, 12:31pm UTC](https://discuss.elastic.co/t/7-2-rollover-command-fails/347981/4 "2023-11-26T12:31:47Z")

</div>

I am not familiar with labs, so you will need to show eaxctly what you did if I am going to be able to help.

---

<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:** [December 26, 2023, 12:32pm UTC](https://discuss.elastic.co/t/7-2-rollover-command-fails/347981/5 "2023-12-26T12:32:17Z")

</div>

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