# Alias error , with rollover next step index-0002

**URL:** <https://discuss.elastic.co/t/alias-error-with-rollover-next-step-index-0002/319192>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [November 17, 2022, 12:45pm UTC](https://discuss.elastic.co/t/alias-error-with-rollover-next-step-index-0002/319192 "2022-11-17T12:45:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![artax\_sb](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@artax\_sb](https://discuss.elastic.co/u/artax_sb)\
**Post date:** [November 17, 2022, 12:45pm UTC](https://discuss.elastic.co/t/alias-error-with-rollover-next-step-index-0002/319192/1 "2022-11-17T12:45:26Z")

</div>

Hi,

I have a lifecycle policy with template/alias/index with 5gb and 3 days

indextest-00001

good works when the rollover step, close de indextest-00001 and creates a new indextest-00002 but the new index dont write any info, doesnt have any documents , is empty and 450b

i put the alias in indextest-0001 with is\_write true , dont show any errors.

i dont know what is the error

Thank you in advance

---

<div class="post-metadata">

**Author:** ![artax\_sb](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@artax\_sb](https://discuss.elastic.co/u/artax_sb)\
**Post date:** [November 18, 2022, 11:20am UTC](https://discuss.elastic.co/t/alias-error-with-rollover-next-step-index-0002/319192/2 "2022-11-18T11:20:51Z")

</div>

I see one of the problems is that the index created 0002 dont have the alias although i put

```auto
POST /_aliases
{
  "actions": [
    {
      "add": {
        "index": "indextest-*",
        "alias": "3days5gbalias",
        "is_write_index": true
      }
    }
  ]

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 22, 2022, 12:28am UTC](https://discuss.elastic.co/t/alias-error-with-rollover-next-step-index-0002/319192/3 "2022-11-22T00:28:18Z")

</div>

Can you share your policy please.

---

<div class="post-metadata">

**Author:** ![artax\_sb](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@artax\_sb](https://discuss.elastic.co/u/artax_sb)\
**Post date:** [November 22, 2022, 11:55am UTC](https://discuss.elastic.co/t/alias-error-with-rollover-next-step-index-0002/319192/4 "2022-11-22T11:55:02Z")

</div>

Hi, just solve this

but i continue in this one

> [@Index lost the alias rollover](https://discuss.elastic.co/t/index-lost-the-alias-rollover/319396/5):
>
> thank you! but i dont understand it very well, then the fluentd.conf the index name should be the alias which use in the template? for example, i make the lifepolicy, then the template, PUT \_index\_template/indextemplate { "index\_patterns": ["index-\*"], "template": { "settings": { "number\_of\_shards": 1, "number\_of\_replicas": 1, "index.lifecycle.name": "index-policy" "index.lifecycle.rollover\_alias": "indexalias" } } and then create the alias and make …

---

<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 20, 2022, 11:55am UTC](https://discuss.elastic.co/t/alias-error-with-rollover-next-step-index-0002/319192/5 "2022-12-20T11:55:37Z")

</div>

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