Curator filtertype:alias matching an alias from the list

Hi all,

I have a few delete indices actions as part of curator cleanup but I am having trouble with this one.

action: delete_indices
description: >-
  BIG INDICES - Keep at least 3 indices at all times.
  Exclude indices with matching aliases.
  Ignore the error if the filter does not result in an actionable list of indices(ignore_empty_list) and exit cleanly.
options:
  ignore_empty_list: True
  disable_action: False
filters:
- filtertype: count
  count: 3
  pattern: '^(prices-|items-)\d*-\d*-\d*-\d*'
  reverse: true
- filtertype: alias
  aliases: [ prices, items, uptodate_prices, uptodate_items ]
  exclude: True

From what I understand by looking at the docs here, in order for my indices to be excluded from the deletion action, they have to match all of the aliases in the aliases list I provide in the filter rule. Is there a way to make it so that they are excluded if they match one of the aliases in the list? Otherwise I will have to add separate rules for each alias and I have a lot of them. Thank you in advance!

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