# Index not getting rolled over even when policy is applied

**URL:** <https://discuss.elastic.co/t/index-not-getting-rolled-over-even-when-policy-is-applied/223251>\
**Category:** Elasticsearch\
**Created:** [March 12, 2020, 5:46am UTC](https://discuss.elastic.co/t/index-not-getting-rolled-over-even-when-policy-is-applied/223251 "2020-03-12T05:46:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu\_mk](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@Vishnu\_mk](https://discuss.elastic.co/u/Vishnu_mk)\
**Post date:** [March 12, 2020, 5:46am UTC](https://discuss.elastic.co/t/index-not-getting-rolled-over-even-when-policy-is-applied/223251/1 "2020-03-12T05:46:28Z")

</div>

I have applied a policy to my index , by which the index should get rolled over after 20 MB ..(Since i want to check whether it is getting rolled over i have set low storage size) Index is getting created but it is not getting rolled over after 20 MB storage size is reached.

**Logstash config:**

```
        output {
elasticsearch {
hosts => ["https://10.21.36.5:9200"]
# index => "test-axiom"
ilm_rollover_alias => "sort-axiom"
ilm_pattern => "{now/d}-000001"
ilm_policy => "policy-axiom"
document_id => "%{unqid}"
template => "/etc/logstash/templates/sort-axiom.json"
user => "elastic"
password => "Elk@1234"
ssl => true
ssl_certificate_verification => false
cacert => "/etc/logstash/ca.crt"
}
}

```

**Index template applied**

```
{
"index_patterns": ["sort-axiom-*"],
"settings" : {
"number_of_shards": 1,
"number_of_replicas": 0,
"index.routing.allocation.require.data": "hot",
"[index.lifecycle.name](http://index.lifecycle.name/)": "ploicy-axiom",
"index.lifecycle.rollover_alias": ""
"index" : {
"sort.field" : ["Received DateTime","msisdn"],
"sort.order" : ["desc","desc"]
}
},
"mappings": {
"properties": {
"Received DateTime": {
"type": "date"
},
"msisdn": {
"type": "keyword",
"doc_values": true
}
}
}
}
```

---

<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 9, 2020, 5:46am UTC](https://discuss.elastic.co/t/index-not-getting-rolled-over-even-when-policy-is-applied/223251/2 "2020-04-09T05:46:35Z")

</div>

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