Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.05 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.05 KB

ElasticSearch Document Cleaner

Simple script to remove documents from ElasticSearch older than specific day count

Installation

$ 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

Usage

$ 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.

Contribution

Have an idea? Found a bug? See how to contribute.

License

MIT see LICENSE for the full license text.