Error in Lab 6.2 Engineer II?

Hello,

While working on Lab 6.2 I read the following question:

  1. In the same request, remove logs_server1 from the access_logs alias and update the same alias to write to logs_server5 instead of logs_server4

But in the answer I see logs_server3 is set to false (instead of 4) and logs_server4 is set to true (instead of 5)?

Is the answer incorrect and the question correct or vice versa?

If both are correct I need some help wit this one!

Hello Patrick,

There's a mistake in the answer, you are right!

The correct solution should be:

POST _aliases
{
  "actions": [
    {
      "add": {
        "alias": "access_logs",
        "index": "logs_server4",
        "is_write_index": false
      }
    },
    {
      "add": {
        "alias": "access_logs",
        "index": "logs_server5",
        "is_write_index": true
      }
    },
    {
      "remove": {
        "alias": "access_logs",
        "index": "logs_server1"
      }
    }
  ]
}

Thanks