infra/roles/elk/templates/elk-cron.j2

11 lines
252 B
Django/Jinja

# {{ ansible_managed }}
# m h dom mon dow
30 7 * * * root /usr/bin/find {{ elk_root }}/logstash/logs/ -name "logstash_*.json" -mtime +7 -type f -delete
#30 7 * * * root /usr/bin/find {{ elk_root }}/logstash/logs/ -type f -mmin +2 -exec rm {} \;
#