To provide a bit of context, I recently started a new mission at a client (I'm an employee consultant), where they are using the Elastic Stack.
We are using curator to create snapshots, till now only time-based.
The snapshots contain 4 different indices "type": alpha, beta, gamma, delta, each created on a daily basis.
The repository used (shared file system) is reaching its limit, so we need to do some cleanup.
Based on that, I've asked and was told that:
- snapshots of alpha indices should be kept a year
- snapshots of beta and gamma indices should be kept 10 weeks
- snapshots of delta indices (by far the heaviest space consumers) should be kept 6 weeks.
This is all well and good for the new snapshots, I've changed their creation to be separate for each indice type, and so can perform the cleanup for each of those snapshots separately based on the requirements provided,
but for older snapshots, which contain all the indices types, I'm a bit stuck.
The option I was considering was to recreate the snapshots per indice type for the ones I wish to keep (mostly alpha indices), so I could then delete the global snapshots while retaining the important information.
I'd like to know if there is any possibility to do so only working on the information in the repository, instead of having to restore old snapshots, then recreate new ones based on the restored indices.
Goal for all the historic data will probably be to create snapshots containing a single day of indice type.
If there is a better/more standard approach to achieve my goal, I'm of course happy to hear it, I'm still in the learning phase.
Thanks in advance for all input,