# Winlogbeat Index not rolling over - alias not pointing to index

**URL:** https://discuss.elastic.co/t/winlogbeat-index-not-rolling-over-alias-not-pointing-to-index/244072
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [August 6, 2020, 5:26pm UTC](https://discuss.elastic.co/t/winlogbeat-index-not-rolling-over-alias-not-pointing-to-index/244072 "2020-08-06T17:26:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kernelpanic](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kernelpanic](https://discuss.elastic.co/u/kernelpanic)
#### Post date: [August 6, 2020, 5:26pm UTC](https://discuss.elastic.co/t/winlogbeat-index-not-rolling-over-alias-not-pointing-to-index/244072/1 "2020-08-06T17:26:44Z")

</div>

Hello, I've create an ILM policy that should roll over the index when it gets to 50 GB. I then created an index template:

```
PUT /_template/winlogbeat-default
{
    "index_patterns" : ["winlogbeat-*"],
    "order" : 2,
    "settings" : {
        "number_of_shards" : 1,
        "number_of_routing_shards" : 1,
        "number_of_replicas" : 0,
        "index.lifecycle.name": "Policy-Winlogbeat",
        "index.lifecycle.rollover_alias": "winlogbeat"
    }
}

```

...and I then created the alias:

```
PUT winlogbeat-000001
{
  "aliases": {
    "winlogbeat": {
      "is_write_index": true
    }
  }
}

```

However when I start Logstash and it ingests messages, it doesn't seem to write to the initialised index (winlogbeat-000001), it just writes to the main normal index:

```
GET /_cat/indices/winlogbeat-*?v&s=docs.count:desc

health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open winlogbeat-7.6.1-2020.08 JIawQ2roR_W_Sk1a_YKkrg 1 0 3102100 0 2.4gb 2.4gb
green open winlogbeat-000001 ViOeDT7hTIuMEWnVvMUbWA 1 0 0 0 283b 283b

```

...and if I use the ILM explain API I get the following error:

> "index.lifecycle.rollover\_alias [winlogbeat] does not point to index [winlogbeat-7.6.1-2020.08]"

From what I've found looking on various forums this problem can occur because I didn't create policy, template and alias in the correct order but I'm pretty sure I have - can anyone 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: [September 3, 2020, 5:26pm UTC](https://discuss.elastic.co/t/winlogbeat-index-not-rolling-over-alias-not-pointing-to-index/244072/2 "2020-09-03T17:26:55Z")

</div>

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