mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 11:18:51 +00:00
update housekeeping for elasticsearch, keep indexes for <=90 days
This commit is contained in:
parent
d1b7774f1f
commit
1089993579
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
# T-Pot post install script #
|
||||
# Ubuntu server 14.04.3, x64 #
|
||||
# #
|
||||
# v16.03.10 by mo, DTAG, 2016-02-19 #
|
||||
# v16.03.11 by mo, DTAG, 2016-03-02 #
|
||||
########################################################
|
||||
|
||||
# Type of install, SENSOR, INDUSTRIAL or FULL?
|
||||
|
@ -273,8 +273,8 @@ tee -a /etc/crontab <<EOF
|
|||
# Restart docker service and containers
|
||||
27 3 * * * root dcres.sh
|
||||
|
||||
# Delete elastic indices older than 30 days
|
||||
27 4 * * * root docker exec elk bash -c '/usr/local/bin/curator --host 127.0.0.1 delete --older-than 30'
|
||||
# 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''
|
||||
|
||||
# Update IP and erase check.lock if it exists
|
||||
27 15 * * * root /etc/rc.local
|
||||
|
|
Loading…
Reference in a new issue