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.

1 Like