# Rollover index creates a concrete index using alias

**URL:** <https://discuss.elastic.co/t/rollover-index-creates-a-concrete-index-using-alias/144191>\
**Category:** Elasticsearch\
**Created:** [August 13, 2018, 2:54pm UTC](https://discuss.elastic.co/t/rollover-index-creates-a-concrete-index-using-alias/144191 "2018-08-13T14:54:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_Deshpande](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Akshay\_Deshpande](https://discuss.elastic.co/u/Akshay_Deshpande)\
**Post date:** [August 13, 2018, 2:54pm UTC](https://discuss.elastic.co/t/rollover-index-creates-a-concrete-index-using-alias/144191/1 "2018-08-13T14:54:18Z")

</div>

I have a job which runs daily to rollover the index when the creation time is greater than a certain period eg. 167hrs. But sometimes when the job runs, it does not rollover but creates concrete indices of alias.

API request and response:  
Array  
(  
[newIndex] =\> 1-emails-index-2018-08-13-1  
[alias] =\> 1-emails-index  
[body] =\> Array  
(  
[conditions] =\> Array  
(  
[max\_age] =\> 167h  
)  
[aliases] =\> Array  
(  
[1-emails-index-search] =\> stdClass Object  
(  
)  
)  
[settings] =\> Array  
(  
[number\_of\_shards] =\> 1  
[number\_of\_replicas] =\> 3  
)  
)  
)  
{"error":{"root\_cause":[{"type":"remote\_transport\_exception","reason":"[i-0d69a7ef7e924b55b][172.17.5.70:9300][indices:admin/rollover]"}],"type":"illegal\_argument\_exception","reason":"source alias is a concrete index"},"status":400}

I am fairly certain that the "1-emails-index-search" index did not exist before the job ran, so I think there is some inconsistency in the rollover API which sometimes create the concrete index rather than rolling over the existing index and adding the "1-emails-index-search" alias.

Is my observation valid?  
Is there a check or param that we can add into the body which prevents this concrete index from being created.

By the way, I use php elastic client to send this rollover request.

---

<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 10, 2018, 2:54pm UTC](https://discuss.elastic.co/t/rollover-index-creates-a-concrete-index-using-alias/144191/2 "2018-09-10T14:54:33Z")

</div>

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