zazuko / elastic-cleanup-cron

Docker image used to clean all filebeat and journalbeat indices older than one week

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elastic cleanup cron

Purpose

Using Elasticsearch OSS edition, there is no option to automatically delete old indices. This project is a Docker image that should be run as a CronJob once a day, to clean all filebeat and journalbeat indices older than one week.

Configuration

Configuration is made through the following environment variables:

  • ELASTIC_INSTANCE (default: http://elasticsearch-master:9200), URL of the Elasticsearch instance.

About

Docker image used to clean all filebeat and journalbeat indices older than one week

License:MIT License


Languages

Language:Shell 83.5%Language:Dockerfile 16.5%