Recently we migrated our elasticsearch cluster and used snapshot/restore to do this.
Unfortunately we forgot about a change we made to the lifecycle policy of a the apm traces datastream. Which meant data older than 90 days were automatically deleted.
I can see in the snapshot that the data indexes exist
.ds-traces-apm.rum-default-2022.08.07-000003
.ds-traces-apm.rum-default-2022.09.06-000004
.ds-traces-apm.rum-default-2022.10.06-000006
.ds-traces-apm.rum-default-2022.11.05-000007
.ds-traces-apm.rum-default-2022.12.05-000009
But when i come to restore just these indexes, i can only select the entire data stream. (should i select the entire data stream?, what will happen to the current index)
Is it possible to restore a specific index to a data stream?
I can't see specific indexes in the drop down, but if i copy and paste the exact name .ds-traces-apm.rum-default-2022.08.07-000003
it will restore. but im left with the problem that the index that i restored is not associated with the data stream?
Is there a way to do this properly?