old indices were not deleted

escaping timestring format fixes it
This commit is contained in:
Marco Ochse 2016-07-21 17:39:40 +02:00 committed by GitHub
parent 0df2d3bbf6
commit cef8e5fded

View file

@ -287,7 +287,7 @@ tee -a /etc/crontab <<EOF
27 3 * * * root dcres.sh
# Delete elastic indices older than 90 days (kibana index is omitted by default)
27 4 * * * root docker exec elk bash -c '/usr/local/bin/curator --host 127.0.0.1 delete indices --older-than 90 --time-unit days --timestring '%Y.%m.%d''
27 4 * * * root docker exec elk bash -c '/usr/local/bin/curator --host 127.0.0.1 delete indices --older-than 90 --time-unit days --timestring \%Y.\%m.\%d'
# Update IP and erase check.lock if it exists
27 15 * * * root /etc/rc.local