I’d like to snapshot and then delete an index only after it has gone X days without any writes (i.e., “idle for X days”).
I don’t see a way to reference “last-write time” with the standard ISM transition keys (min_index_age
, min_size
, etc.). Can ISM accept a Painless script (or similar) in the conditions
block, or is an external job/Lambda the only solution?
Any examples or pointers would be appreciated—thanks!