b7a6ceb086
This set of playbooks install an Elasticsearch cluster, Logstash and a kibana dashboard inside containers and then install Topbeat in your cloud to ship system metrics to the Elastic cluster. Change-Id: I0c8c853ee48bd9278bd7b08719be4bde5f8c3df6
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
|