Use curl -sS to silence non error output.
The logstash daily curl commands output non error messages on normal runs. Use the -sS options to curl to silence all non error message output. Change-Id: I7df3abdd74f6e058cf0208cefb7639202e4f9d0e Reviewed-on: https://review.openstack.org/27316 Reviewed-by: Anita Kuno <anita.kuno@enovance.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
b343db2b05
commit
2c92932ba0
@ -53,7 +53,7 @@ class openstack_project::logstash (
|
||||
user => 'root',
|
||||
hour => '5',
|
||||
minute => '0',
|
||||
command => 'curl -XDELETE "http://localhost:9200/logstash-`date -d \'last week\' +\%Y.\%m.\%d`/"',
|
||||
command => 'curl -sS -XDELETE "http://localhost:9200/logstash-`date -d \'last week\' +\%Y.\%m.\%d`/"',
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ class openstack_project::logstash (
|
||||
user => 'root',
|
||||
hour => '5',
|
||||
minute => '0',
|
||||
command => 'curl -XPOST "http://localhost:9200/logstash-`date -d yesterday +\%Y.\%m.\%d`/_optimize" -d \'max_num_segments=1\'',
|
||||
command => 'curl -sS -XPOST "http://localhost:9200/logstash-`date -d yesterday +\%Y.\%m.\%d`/_optimize" -d \'max_num_segments=1\'',
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user