Simple script to remove documents from ElasticSearch older than specific day count
$ git clone https://github.com/karster/elasticsearch-document-cleaner.git && cd elasticsearch-document-cleaner
$ sudo make install
For uninstalling, open up the cloned directory and run
$ sudo make uninstall
For update/reinstall
$ sudo make reinstall
$ elasticsearch-document-cleaner [ -f | -h | -p | -d | -i ]
-d <number>, --days <number>
Defines days, default 14.
-p <number>, --port <number>
Port, default 9200.
-h <string>, --host <string>
Host name, default "localhost".
-i <string>, --index <string>
Index name. If empty get list all indices. If set "all" remove documents across all indices
-f, --force
Don't ask for confirm to delete indexes.
--help
Print this help.
Have an idea? Found a bug? See how to contribute.
MIT see LICENSE for the full license text.