Skip to content

Instantly share code, notes, and snippets.

@crunchie84
Created November 13, 2014 11:52
Show Gist options
  • Save crunchie84/cd117ea652a0d1e61d66 to your computer and use it in GitHub Desktop.
Save crunchie84/cd117ea652a0d1e61d66 to your computer and use it in GitHub Desktop.
install elasticsearch curator
#https://github.com/elasticsearch/curator/wiki/Installation
apt-get install python-pip python-dev build-essential
pip install elasticsearch-curator
which curator
# => /usr/local/bin/curator
crontab -e
# add this to run at 3:01AM cleanup of old indices older then 90 days
01 03 * * * /usr/local/bin/curator --host localhost --port 9200 delete --older-than 90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment