Skip to content

Instantly share code, notes, and snippets.

@jordanpotti
Created December 29, 2017 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanpotti/8265b17406211daf7a7d6a656d57c3d7 to your computer and use it in GitHub Desktop.
Save jordanpotti/8265b17406211daf7a7d6a656d57c3d7 to your computer and use it in GitHub Desktop.
actions:
1:
action: delete_indices
description: >-
Delete indices older than X days (based on index name), for winlogbeat-
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
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: winlogbeat-
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
DAYSPLACEHOLDER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment