HUB
Sign inSign up

donbowman/elastic-prune

By donbowman

•Updated over 7 years ago

Image
0

214

donbowman/elastic-prune repository overview

⁠elastic-prune

This script cleans older logstash indexes from Elasticsearch, and restores the indices to read-write (in case it had run out of disk space).

⁠Usage

elastic-prune -e elastic-url [-d days]

You may wish to install the Kubernetes CronJob:

kubectl -n logging apply -f cron.yaml

You can use the image from Dockerhub⁠ instead of the internal cr.agilicus.com on, in which case you might remove the imagePullSecrets: line in the cron.

Public image is donbowman/elastic-prune

If you want to run this right away, you can run from the template:

kubectl -n logging create job --from=cronjob/elastic-prune now
Tag summary
Recent tags
Content type
Image
Digest
Size
21.2 MB
Last updated
over 7 years ago
docker pull donbowman/elastic-prune:latest