Skip to main content

Tending your Elasticsearch indices

Project description

# Curator [![Build Status](http://build-eu-00.elastic.co/job/es-curator_core/badge/icon)](http://build-eu-00.elastic.co/job/es-curator_core/)

Have indices in Elasticsearch? This is the tool for you!

Like a museum curator manages the exhibits and collections on display, Elasticsearch Curator helps you curate, or manage your indices.

## [Curator API Documentation](http://curator.readthedocs.org/) (External)

Since Curator 3.0, curator ships with both an API and wrapper scripts (which are actually defined as entry points). This allows you to write your own scripts to accomplish similar goals, or even new and different things with the [Curator API](http://curator.readthedocs.org/), and the [Elasticsearch Python API](http://elasticsearch-py.readthedocs.org/).

## [Curator CLI Documentation (GitHub wiki)](http://github.com/elasticsearch/curator/wiki)

See the [Documentation Wiki](http://github.com/elasticsearch/curator/wiki)! Try the new asciidoc [documentation for the CLI](https://github.com/elasticsearch/curator/blob/master/docs/asciidoc/index.asciidoc).

## Usage

Install using pip

pip install elasticsearch-curator

See curator –help for usage specifics.

## [Documentation & Examples](http://github.com/elasticsearch/curator/wiki)

Try the new asciidoc [documentation for the CLI](https://github.com/elasticsearch/curator/blob/master/docs/asciidoc/index.asciidoc). See the [Curator Wiki](http://github.com/elasticsearch/curator/wiki) on Github for more documentation

## Contributing

To run from source, use the run_curator.py and run_es_repo_mgr.py scripts in the root directory of the project.

### Running tests

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’).

## Versioning

There are two branches for development - master and 0.6. Master branch is used to track all the changes for Elasticsearch 1.0 and beyond whereas 0.6 tracks Elasticsearch 0.90 and the corresponding elasticsearch-py version.

Releases with major versions greater than 1 (X.Y.Z, where X is > 1) are to be used with Elasticsearch 1.0 and later, 0.6 releases are meant to work with Elasticsearch 0.90.X.

## Origins

Curator was first called clearESindices.py [1] and was almost immediately renamed to logstash_index_cleaner.py [1]. After a time it was migrated under the [logstash](https://github.com/elasticsearch/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/elasticsearch/curator>

[1] <https://logstash.jira.com/browse/LOGSTASH-211>

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elasticsearch-curator-3.0.1.tar.gz (27.8 kB view details)

Uploaded Source

File details

Details for the file elasticsearch-curator-3.0.1.tar.gz.

File metadata

File hashes

Hashes for elasticsearch-curator-3.0.1.tar.gz
Algorithm Hash digest
SHA256 2f0923cf2e1bbcb012611b06f470ecb758ff36dcdbdeea4a05ee6036e435c14a
MD5 97c6d9a08a92fcbc42fdb0aa99fe7aba
BLAKE2b-256 1aac0e7c7248e251fa2f43addaaf7e81421ba374c019cdaf518ed2152550b732

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page