7.2 Rollover Command Fails

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/

  "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!

One possibility is that you have not created the index as a rollover index, which is required for rollover to work. Exactly how did you create the index?

Hey Christian ,

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

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.

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