How to avoid deleting .kibana using curator

Hi All,

I want to delete all my indices order than 5 days except .kibana, I think the following script is still deleting .kibana, Is there anyone can help me modify this? Thanks.

actions:
  1:
    action: delete_indices
    description: "Delete indices older than 5 days (based on index name)
                  Ignore the error if the filter does not result in an actionable list of indices (ignore_empty_list) and exit cleanly"
    options:
      timeout_override: 
      continue_if_exception: False
      disable_action: False
    filters:
    - filtertype: age
      source: creation_date
      direction: older
      unit: days
      unit_count: 5 
      exclude: 
    - filtertype: kibana
      exclude: False

Should be exclude: True. You can do a dry run to test before actually deleting indexes.

Thanks, it works.

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