Tending your Elasticsearch indices
Have indices in Elasticsearch? This is the library for you!
Like a museum curator manages the exhibits and collections on display, Elasticsearch Curator helps you curate, or manage your indices.
Curator ships with both an API and a wrapper script (which is actually defined as an entry point). The API allows you to write your own scripts to accomplish similar goals, or even new and different things with the Curator API, and the Elasticsearch Python API.
Running curator --help will also show usage information.
- fork the repo
- make changes in your fork
- add tests to cover your changes (if necessary)
- run tests
- sign the CLA
- send a pull request!
To run from source, use the run_curator.py script in the root directory of the project.
To run the test suite just run python setup.py test
When changing code, contributing new code or fixing a bug please make sure you include tests in your PR (or mark it as without tests so that someone else can pick it up to add the tests). When fixing a bug please make sure the test actually tests the bug - it should fail without the code changes and pass after they’re applied (it can still be one commit of course).
The tests will try to connect to your local elasticsearch instance and run integration tests against it. This will delete all the data stored there! You can use the env variable TEST_ES_SERVER to point to a different instance (for example, ‘otherhost:9203’).
Curator was first called clearESindices.py  and was almost immediately renamed to logstash_index_cleaner.py . After a time it was migrated under the [logstash](https://github.com/elastic/logstash) repository as expire_logs. Soon thereafter, Jordan Sissel was hired by Elasticsearch, as was the original author of this tool. It became Elasticsearch Curator after that and is now hosted at <https://github.com/elastic/curator>
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size elasticsearch_curator_api-5.8.3-py2.py3-none-any.whl (80.6 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size elasticsearch-curator-api-5.8.3.tar.gz (195.5 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for elasticsearch_curator_api-5.8.3-py2.py3-none-any.whl
Hashes for elasticsearch-curator-api-5.8.3.tar.gz