# Several Rollup on the same raw index

**URL:** https://discuss.elastic.co/t/several-rollup-on-the-same-raw-index/161165
**Category:** Elasticsearch
**Created:** [December 17, 2018, 2:06pm UTC](https://discuss.elastic.co/t/several-rollup-on-the-same-raw-index/161165 "2018-12-17T14:06:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rollup\_eval](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@Rollup\_eval](https://discuss.elastic.co/u/Rollup_eval)
#### Post date: [December 17, 2018, 2:06pm UTC](https://discuss.elastic.co/t/several-rollup-on-the-same-raw-index/161165/1 "2018-12-17T14:06:00Z")

</div>

Hi,

I have created 2 rollup jobs on the same raw index:

- one for daily rollup
- one for weekly rollup

Since I started the second jobs (weekly) it seems that the first (daily) doesn't performs its operations.

Is it possible to start two rollup job building 2 different rollup index from the same raw index ?

See the follwing 2 jobs:

PUT _xpack/rollup/job/roll\_1d  
{  
"index\_pattern": "pfs\_pnsapi_\*\_dfy",  
"rollup\_index": "roll1d\_pfs\_pnsapi-\_dfy",  
"cron": "0 7 14 \* \* ?"",  
"page\_size" :10000,  
"groups" : {  
"date\_histogram": {  
"field": "@timestamp",  
"interval": "1d",  
"delay": "7d",  
"time\_zone":"UTC"  
},  
"terms": {  
"fields": ["tag.env","tag.svcid","data.q\_client","data.q\_method","data.q\_submethod","data.stream\_id","data.r\_status"]  
}  
},  
"metrics": [  
{  
"field": "data.payloadsize",  
"metrics": ["min", "max", "sum", "avg"]  
},  
{  
"field": "data.message\_count",  
"metrics": ["min", "max", "sum", "avg"]  
}  
]  
}

PUT _xpack/rollup/job/roll\_1w  
{  
"index\_pattern": "pfs\_pnsapi_\*\_dfy",  
"rollup\_index": "roll1w\_pfs\_pnsapi-\_dfy",  
"cron": "0 0 10 ? \* 2",  
"page\_size" :10000,  
"groups" : {  
"date\_histogram": {  
"field": "@timestamp",  
"interval": "1w",  
"delay": "7d",  
"time\_zone":"UTC"  
},  
"terms": {  
"fields": ["tag.env","tag.svcid","data.q\_client","data.q\_method","data.q\_submethod","data.stream\_id","data.r\_status"]  
}  
},  
"metrics": [  
{  
"field": "data.payloadsize",  
"metrics": ["min", "max", "sum", "avg"]  
},  
{  
"field": "data.message\_count",  
"metrics": ["min", "max", "sum", "avg"]  
}  
]  
}

Best regards

---

<div class="post-metadata">

### Author: ![Rollup\_eval](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@Rollup\_eval](https://discuss.elastic.co/u/Rollup_eval)
#### Post date: [December 18, 2018, 2:57pm UTC](https://discuss.elastic.co/t/several-rollup-on-the-same-raw-index/161165/2 "2018-12-18T14:57:50Z")

</div>

After checking , rollup works fine in this case : topic to close

---

<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: [January 15, 2019, 2:57pm UTC](https://discuss.elastic.co/t/several-rollup-on-the-same-raw-index/161165/3 "2019-01-15T14:57:51Z")

</div>

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