# Reindex daily index into the correct monthly index a few days later

**URL:** https://discuss.elastic.co/t/reindex-daily-index-into-the-correct-monthly-index-a-few-days-later/191602
**Category:** Elasticsearch
**Tags:** curator
**Created:** [July 22, 2019, 8:19am UTC](https://discuss.elastic.co/t/reindex-daily-index-into-the-correct-monthly-index-a-few-days-later/191602 "2019-07-22T08:19:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wellguys](https://avatars.discourse-cdn.com/v4/letter/w/8e7dd6/32.png) [@Wellguys](https://discuss.elastic.co/u/Wellguys)
#### Post date: [July 22, 2019, 8:19am UTC](https://discuss.elastic.co/t/reindex-daily-index-into-the-correct-monthly-index-a-few-days-later/191602/1 "2019-07-22T08:19:00Z")

</div>

Hello, I am currently testing curators functionnalities and would like to know how it was possible for me to reindex 7days old daily indices into the correct monthly index.  
Here is my current code in which the last seven days of the month will end up in the wrong monthly index.

```
  1:
description: "Reindex daily iis indices into monthly iis index"
action: reindex
options:
  wait_interval: 9
  max_wait: -1
  request_body:
    source:
      index: <index-iis-{now/d-7d{YYYY.MM.dd}}>
    dest:
      index: <index-iis-{now/M{YYYY.MM}}>
filters:
- filtertype: none
```

---

<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 19, 2019, 8:19am UTC](https://discuss.elastic.co/t/reindex-daily-index-into-the-correct-monthly-index-a-few-days-later/191602/2 "2019-08-19T08:19:13Z")

</div>

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