# Index rotation

**URL:** <https://discuss.elastic.co/t/index-rotation/190960>\
**Category:** Elasticsearch\
**Created:** [July 17, 2019, 10:35am UTC](https://discuss.elastic.co/t/index-rotation/190960 "2019-07-17T10:35:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maasid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maasid/32/48327_2.png) [@maasid](https://discuss.elastic.co/u/maasid)\
**Post date:** [July 17, 2019, 10:35am UTC](https://discuss.elastic.co/t/index-rotation/190960/1 "2019-07-17T10:35:09Z")

</div>

Hello,

I have upgraded to elasticsearch v7.2.0 and the same has been done for all beats that I used along with kibana. Now, since I upgraded, my indexes have been rotating based on size roughly 100gb, instead of date. How can I revert back to how it used to be, rotation based on dates?

```
setup.template.enabled: true
setup.template.name: "metricbeat-%{[agent.version]}"
setup.template.pattern: "metricbeat-%{[agent.version]}-*"
setup.template.override: true

output.elasticsearch:
      hosts: ["https://hostname:port"]
      index: "metricbeat-%{[agent.version]}-%{+yyyy.MM.dd}"
      ssl.certificate_authorities:
        - /etc/pki/tls/beats/ca.crt
      ssl.certificate: "/etc/pki/tls/beats/client.pem"
      ssl.key: "/etc/pki/tls/beats/key.pem"
      username: "elastic"
      password: "password"
```

---

<div class="post-metadata">

**Author:** ![maasid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maasid/32/48327_2.png) [@maasid](https://discuss.elastic.co/u/maasid)\
**Post date:** [July 17, 2019, 10:42am UTC](https://discuss.elastic.co/t/index-rotation/190960/2 "2019-07-17T10:42:16Z")

</div>

Solved it! Solution:

```
setup.ilm.enabled: false

```

That ilm stuff aint noo good.

---

<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:** [August 14, 2019, 10:42am UTC](https://discuss.elastic.co/t/index-rotation/190960/3 "2019-08-14T10:42:21Z")

</div>

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