Elasticsearch

Curator est un outil qui va permettre de purger d’anciens indices ou snapshot ES

Need :

  • Elasticsearch
  • python-pip

Install

1
~# pip install elasticsearch-curator==2.1.2

Usage

1
$> curator delete --prefix .marvel- --older-than 15

Exemple de cron

1
15 3 * * * elasticsearch /usr/local/bin/curator --host 127.0.0.1 delete --prefix logstash- --older-than 360 --time-unit days --timestring '%Y.%m.%d'

check du cluster

1
~# curl -XGET 'http://localhost:9200/_cluster/health?pretty'

node info

1
~# curl -XGET 'localhost:9200/_nodes?pretty'

Some stats

1
~# curl -XGET 'localhost:9200/_stats?pretty'

Some docs

Cluster guide
prod checklist