# Error in Lab 6.2 Engineer II?

**URL:** <https://discuss.elastic.co/t/error-in-lab-6-2-engineer-ii/267797>\
**Category:** Elastic Training\
**Created:** [March 19, 2021, 10:29am UTC](https://discuss.elastic.co/t/error-in-lab-6-2-engineer-ii/267797 "2021-03-19T10:29:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbroek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pbroek/32/69990_2.png) [@pbroek](https://discuss.elastic.co/u/pbroek)\
**Post date:** [March 19, 2021, 10:29am UTC](https://discuss.elastic.co/t/error-in-lab-6-2-engineer-ii/267797/1 "2021-03-19T10:29:58Z")

</div>

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!

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b998d7ba709d7158898b43a05091e06c6d85e0b4.png)

---

<div class="post-metadata">

**Author:** ![Romain\_Geffraye](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/romain_geffraye/32/77053_2.png) [@Romain\_Geffraye](https://discuss.elastic.co/u/Romain_Geffraye)\
**Post date:** [March 19, 2021, 8:47pm UTC](https://discuss.elastic.co/t/error-in-lab-6-2-engineer-ii/267797/2 "2021-03-19T20:47:25Z")

</div>

Hello Patrick,

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

The correct solution should be:

```auto
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"
      }
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![pbroek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pbroek/32/69990_2.png) [@pbroek](https://discuss.elastic.co/u/pbroek)\
**Post date:** [March 21, 2021, 3:31pm UTC](https://discuss.elastic.co/t/error-in-lab-6-2-engineer-ii/267797/3 "2021-03-21T15:31:54Z")

</div>

Thanks

---

<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:** [April 20, 2021, 3:32pm UTC](https://discuss.elastic.co/t/error-in-lab-6-2-engineer-ii/267797/4 "2021-04-20T15:32:18Z")

</div>

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