Last active
May 8, 2018 16:14
-
-
Save rmeleromira/ebbfd1f494d4a5b2998563d69a1215e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@log01:~# curator_cli --dry-run --host log01 delete_indices --filter_list '[{"filtertype":"pattern","kind":"regex","value":"^(log|notification)-.*$"},{"direction": "older", "exclude": "null", "filtertype": "age", "source": "name", "timestring": "%Y.%m.%d"}]' | |
2018-05-07 16:44:49,884 ERROR Schema error: expected bool for dictionary value @ data['exclude'] | |
2018-05-07 16:44:49,884 ERROR Schema error: Configuration: filter: Location: singleton, filter #1: {'direction': 'older', 'exclude': 'null', 'filtertype': 'age', 'source': 'name', 'timestring': '%Y.%m.%d'}: Bad Value: "null", expected bool for dictionary value @ data['exclude']. Check configuration file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actions: | |
1: | |
{action: delete_indices, description: Delete indices older than 31 days (based on | |
index name)., filters: [{exclude: null, filtertype: pattern, kind: regex, value: ^(log|notification)-.*$}, | |
{direction: older, exclude: null, filtertype: age, source: name, timestring: '%Y.%m.%d', | |
unit: days, unit_count: 31}], options: {continue_if_exception: false, disable_action: false, | |
ignore_empty_list: true, timeout_override: null}} | |
2: | |
{action: delete_indices, description: Delete indices older than 31 days (based on | |
index name)., filters: [{exclude: null, filtertype: pattern, kind: regex, value: ^events_.*$}, | |
{direction: older, exclude: null, filtertype: age, source: name, timestring: '%Y-%m-%d', | |
unit: days, unit_count: 31}], options: {continue_if_exception: false, disable_action: false, | |
ignore_empty_list: true, timeout_override: null}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@log01:~# curator_cli --dry-run --host log02 delete_indices --filter_list '[{"filtertype":"pattern","kind":"regex","value":"^(log|notification)-.*$"},{"filtertype":"age","source":"creation_date","direction":"older","unit":"days","unit_count":15}]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment