# Backfill Rollup indices from external Sources

**URL:** <https://discuss.elastic.co/t/backfill-rollup-indices-from-external-sources/307667>\
**Category:** Elasticsearch\
**Tags:** rollups\
**Created:** [June 20, 2022, 2:08pm UTC](https://discuss.elastic.co/t/backfill-rollup-indices-from-external-sources/307667 "2022-06-20T14:08:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smueller](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@smueller](https://discuss.elastic.co/u/smueller)\
**Post date:** [June 20, 2022, 2:08pm UTC](https://discuss.elastic.co/t/backfill-rollup-indices-from-external-sources/307667/1 "2022-06-20T14:08:18Z")

</div>

hi there,  
we have a legacy selwritten data retention solution which i want to migrate into pure elastic.  
it contains daily averages(weighted) af some metrics over the last 5 years.  
The Rollup off the latest metric already in Elastic are correct and usable, but however i try, i cant get the legacy data into my rollups.  
For testing purposes i fetched a dataset for one day directly from the rollup-index with `_search`, removed the `_id` field and set the `timestamp.value` field back to an older date that has no rollupdata so far and wrote it via bulk write directly into the rollback index.  
i can query it via normal `_search` queries in the rollup index, but the data does not show up via `_rollup_search`.  
did i miss any conditions or prerequisites to "manually" create rollback data(maybe some metadata regarding rollupjobs)? or is there any docu or examples regarding this topic that i missed?  
i only found a report of the guardian describing that they did exactly what i'm trying, sadly without technical details

---

<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 18, 2022, 2:08pm UTC](https://discuss.elastic.co/t/backfill-rollup-indices-from-external-sources/307667/2 "2022-07-18T14:08:31Z")

</div>

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