
This addition is an updated of the curent elk_metrics which will install Elasticsearc, Logstash and Kibana 6.x. It also include configuration guide for haproxy endpoints Change-Id: Iac4dec6d17bc75433e5fe672f3b9781536b8e619
7 lines
231 B
Bash
7 lines
231 B
Bash
#!/bin/bash
|
|
for d in $(find /var/lib/elasticsearch/openstack_elk/nodes/0/indices/ -maxdepth 1 -type d -mtime 5 | grep topbeat); do
|
|
echo $d
|
|
tar -zcvf $d.tar.gz $d && rm -r $d
|
|
mv $d.tar.gz /var/lib/elasticsearch-olddata/;
|
|
done
|