# Rollup - Rollover and destination index date math/patterns

**URL:** <https://discuss.elastic.co/t/rollup-rollover-and-destination-index-date-math-patterns/232136>\
**Category:** Elasticsearch\
**Created:** [May 12, 2020, 5:29am UTC](https://discuss.elastic.co/t/rollup-rollover-and-destination-index-date-math-patterns/232136 "2020-05-12T05:29:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rysiu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rysiu/32/61919_2.png) [@Rysiu](https://discuss.elastic.co/u/Rysiu)\
**Post date:** [May 12, 2020, 5:29am UTC](https://discuss.elastic.co/t/rollup-rollover-and-destination-index-date-math-patterns/232136/1 "2020-05-12T05:29:47Z")

</div>

I'm trying to use the Rollover in the Rollup.

According to the information:

> <https://github.com/elastic/elasticsearch/issues/33065>
>
> Today, a Rollup job will store its results in a single rollup index. There is currently no provision for handling jobs...

Implementation:

```auto
  "id": "index-data.*",
  "index_pattern": "index-data.*",
  "rollup_index": "rollup.index-data-%{+YYYY.MM}",

```

But it doesn't work.  
Elastic returns the error:

```
"type": "invalid_index_name_exception",
"reason": "Invalid index name [rollup.index-data-%{+YYYY.MM}], must be lowercase",
"index_uuid": "_na_",

```

How to implement Rollover in Rollup?

Elasticseach version 7.5.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 13, 2020, 9:34am UTC](https://discuss.elastic.co/t/rollup-rollover-and-destination-index-date-math-patterns/232136/2 "2020-05-13T09:34:33Z")

</div>

You cannot currently use date math in the `rollup_index` pattern like that sorry.

That issue you linked goes to [https://github.com/elastic/elasticsearch/issues/48003](https://github.com/elastic/elasticsearch/issues/48003), which is still open.

---

<div class="post-metadata">

**Author:** ![Rysiu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rysiu/32/61919_2.png) [@Rysiu](https://discuss.elastic.co/u/Rysiu)\
**Post date:** [May 13, 2020, 11:56am UTC](https://discuss.elastic.co/t/rollup-rollover-and-destination-index-date-math-patterns/232136/3 "2020-05-13T11:56:26Z")

</div>

How to add any other rollover?  
How do I add a numerical rollover?

---

<div class="post-metadata">

**Author:** ![Shawna20](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Shawna20](https://discuss.elastic.co/u/Shawna20)\
**Post date:** [May 13, 2020, 12:06pm UTC](https://discuss.elastic.co/t/rollup-rollover-and-destination-index-date-math-patterns/232136/4 "2020-05-13T12:06:20Z")

</div>

Yeah.. Numerous users face issue while adding the rollover. Need some tutorial sort of thing to understand it[.](https://www.mybpcreditcard.us/)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 13, 2020, 10:13pm UTC](https://discuss.elastic.co/t/rollup-rollover-and-destination-index-date-math-patterns/232136/5 "2020-05-13T22:13:41Z")

</div>

> [@Rysiu](#):
>
> "rollup\_index": "rollup.index-data-%{+YYYY.MM}",

Change that to something like `rollup.index-data`.

---

<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:** [June 10, 2020, 10:13pm UTC](https://discuss.elastic.co/t/rollup-rollover-and-destination-index-date-math-patterns/232136/6 "2020-06-10T22:13:46Z")

</div>

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