Skip to content

GPegel/Elasticsearch_cleanup_indices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Elasticsearch cleanup indices

Script to cleanup Elasticsearch inidices automatically

This script is able to delete indicies older than 21 days or, when there is lots of data comming in at once, delete the oldest indices when free disk space is lower than 25 percent.

  1. Place this script on the same server as where your Elasticsearch Data is located
  2. do a "chmod +x" on this file
  3. if you want, you can schedule this as a job.
  4. my crontab -e looks like this " 0 23 * * * /etc/scripts/cleanup.sh"

https://gpegel.github.io/

About

Script to cleanup Elasticsearch inidices automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages