# The Rollover Index can't do only create index?

**URL:** <https://discuss.elastic.co/t/the-rollover-index-cant-do-only-create-index/147130>\
**Category:** Elasticsearch\
**Created:** [September 4, 2018, 2:41am UTC](https://discuss.elastic.co/t/the-rollover-index-cant-do-only-create-index/147130 "2018-09-04T02:41:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [September 4, 2018, 2:41am UTC](https://discuss.elastic.co/t/the-rollover-index-cant-do-only-create-index/147130/1 "2018-09-04T02:41:00Z")

</div>

Rollover Index

> **[Rollover Index | Elasticsearch Reference \[5.6\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/indices-rollover-index.html)**

as

i use this to rollover index

> curl -XPOST "[http://xx.xx.xx.xx:9200/zqctest/\_rollover?wait\_for\_active\_shards=2&pretty](http://xx.xx.xx.xx:9200/zqctest/_rollover?wait_for_active_shards=2&pretty)" -H 'Content-Type: application/json' -d'  
> {  
> "conditions": {  
> "max\_docs": 5  
> }  
> }  
> '  
> {  
> "old\_index" : "zqctest-2018.09.04-1",  
> "new\_index" : "zqctest-2018.09.04-000002",  
> "rolled\_over" : true,  
> "dry\_run" : false,  
> "acknowledged" : true,  
> "shards\_acknowledged" : true,  
> "conditions" : {  
> "[max\_docs: 5]" : true  
> }  
> }

the only create index but the index fileds don't remove

see in cererebo

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5d16f72248f002892f2cc0fca12e91a420315920.png)

need wating for a day?  
or only create new index.

---

<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:** [October 2, 2018, 2:41am UTC](https://discuss.elastic.co/t/the-rollover-index-cant-do-only-create-index/147130/2 "2018-10-02T02:41:01Z")

</div>

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