Snapshot the most recent indexes only

Hi,

I want to snapshot the most recent created indexes based on a pattern

assuming I have the following indexes in the cluster:

index1_20191104
index1_20191103
index2_20191104
index2_20191101

I only want the snapshot to contain:

ndex1_20191104
index2_20191104

Is there someway to create a snapshot based on this?

Any suggestions gratefully received

@KeninHouston

I'm assuming your creating those indices via some naming pattern? You should be able to use the same pattern (as part of a *_{dataMathExpression} pattern) in the "indices" parameter.
I think the documentation on data naming patterns and multi index syntax should be helpful to you here.

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