import files
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
actions:
|
||||
1:
|
||||
action: delete_indices
|
||||
description: >-
|
||||
Delete indices older than ${UNIT_COUNT:1} ${UNIT:months} based on index name, for apm-*
|
||||
and logs-* 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: True
|
||||
disable_action: False
|
||||
filters:
|
||||
- filtertype: pattern
|
||||
kind: regex
|
||||
value: '^(apm|logs)-.*$'
|
||||
- filtertype: age
|
||||
source: name
|
||||
direction: older
|
||||
timestring: '%Y.%m.%d'
|
||||
unit: ${UNIT:months}
|
||||
unit_count: ${UNIT_COUNT:1}
|
||||
Reference in New Issue
Block a user