Retain 2 weeks of indexed Jenkins logs.
* modules/openstack_project/manifests/elasticsearch.pp: Update the cron job that deletes old elasticsearch indexes to delete those more than two weeks old instead of those more than one week old. Change-Id: I9f3d615fcae96a6165860514e1e2c5e5584064f7 Reviewed-on: https://review.openstack.org/34417 Reviewed-by: Elizabeth Krumbach Joseph <lyz@princessleia.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
e275eaa716
commit
3b93a20d2b
@ -38,7 +38,7 @@ class openstack_project::elasticsearch (
|
||||
user => 'root',
|
||||
hour => '5',
|
||||
minute => '0',
|
||||
command => 'curl -sS -XDELETE "http://localhost:9200/logstash-`date -d \'last week\' +\%Y.\%m.\%d`/" > /dev/null',
|
||||
command => 'curl -sS -XDELETE "http://localhost:9200/logstash-`date -d \'2 weeks ago\' +\%Y.\%m.\%d`/" > /dev/null',
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user