# How to work with Index Alias in Parent-Child Design

**URL:** <https://discuss.elastic.co/t/how-to-work-with-index-alias-in-parent-child-design/40252>\
**Category:** Elasticsearch\
**Created:** [January 27, 2016, 3:08pm UTC](https://discuss.elastic.co/t/how-to-work-with-index-alias-in-parent-child-design/40252 "2016-01-27T15:08:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sundar\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sundar_v/32/6928_2.png) [@Sundar\_V](https://discuss.elastic.co/u/Sundar_V)\
**Post date:** [January 27, 2016, 3:08pm UTC](https://discuss.elastic.co/t/how-to-work-with-index-alias-in-parent-child-design/40252/1 "2016-01-27T15:08:37Z")

</div>

Hello,

We have two types:

**action (parent)**  
**events (child)**

We want to store this index on a monthly basis, so that we can delete the older data after sometime (we want to retain 3 months data). The problem I see is:

We are creating the action (parent) only the first time when the event happens. After that we keep adding the events (children). If I maintain say:

**index\_jan**  
**index\_feb**  
**index\_mar**

That would mean I have to create a **action** parent in all the indexes. Is that correct?

So to summarise:

How to work with alias in parent-child design.

Thanks.

---

<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:** [July 5, 2017, 11:20pm UTC](https://discuss.elastic.co/t/how-to-work-with-index-alias-in-parent-child-design/40252/2 "2017-07-05T23:20:57Z")

</div>

Closed on July 5, 2017, 11:20pm UTC


