Restore historical into data stream

Just moved to Elastic Cloud from on-onprem for our logging, setting up data streams instead of using date based indices. I now need to restore our historical data from snapshots - anyway to restore these into the data stream format?

You can't directly do that, as datastreams expect the data to be indexed in.

Set up a data stream | Elasticsearch Guide [8.2] | Elastic might work if you were using aliases previously.

Maybe the modify data stream api may also help here. If you already have a data stream and you just like to add some restored indices to it then this should work. These indices will need to have a @timestamp field, otherwise it will not be possible to add these indices to a data stream.

2 Likes

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