How can we see how long indexes can be retained for? Can we make a scheduled task for it? How can we maintain an index by looking into freeing up disk space in intervals?
1:
action: delete_indices
description: >-
Delete indices older than 60 days (based on index name), for metricbeat-
prefixed indices. 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
timeout_override:
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: metricbeat-
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 28
exclude:
Here unit_count is 28 which means that it will be the number of days worth of data that we would like to retain. can it be more than 28 days?
And if not in curator, how long can we retain data in indexes before it starts affecting performance?
At 215kb, my index stopped taking logs.