How to take snapshot for four different indices through curator

Hi Everyone..
Greetings...! I want to write a curator job to take 4 indices backup. But the all indices name are not starts with same word.(all are having different names) . In other case i have another set of indices whose names ends with "-prod" Please help me to take snapshot for the both cases.

Thanks in advance

To snapshot only 4 differently named indices, you should use a pattern filter with kind of regex, and use specific index names/patterns separated by pipes:

- filtertype: pattern
  kind: regex
  value: '^idx4.*$|^idx3.*^$|^idx2.*$|^idx1.*$'

This is documented, to an extent, here.

1 Like

That helps me a lot.

Ton of thanks

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