logclean-job: reduce kept ES indices to 20

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-02-27 15:21:25 +01:00
parent 86c637c224
commit d31094d85c
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ logclean_es_host: ~
logclean_es_port: ~
logclean_script_path: '/usr/local/bin/logclean'
logclean_index_regex: 'logstash-*'
logclean_keep_indices: 90
logclean_keep_indices: 20
logclean_service_path: '/lib/systemd/system'
logclean_service_name: 'logclean-job'
logclean_service_desc: 'Job for cleaning ElasticSearch cluster periodically.'

View File

@ -1,9 +1,9 @@
---
- name: 'Log Clean | Verify we keep a minimum of 60 indices'
- name: 'Log Clean | Verify we keep a minimum of 20 indices'
assert:
quiet: true
that:
- logclean_keep_indices > 60
- logclean_keep_indices >= 20
- name: 'Log Clean | Create logclean script'
template: