Skip to main content

Tending your Elasticsearch indices

Project description

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

Since version 2.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, and the Elasticsearch Python API.

Curator CLI Documentation

The Curator CLI Documentation is now a part of the document repository at http://elastic.co/guide at http://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html

Getting Started

See the Installation guide and the command-line usage guide

Running curator --help will also show usage information.

Frequently Asked Questions

Encountering issues like DistributionNotFound? See the FAQ for that issue, and more.

Documentation & Examples

The documentation for the CLI is now part of the document repository at http://elastic.co/guide at http://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html

The Curator Wiki on Github is now a place to add your own examples and ideas.

Contributing

  • 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 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/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>

[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.5.1.tar.gz (91.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elasticsearch_curator-3.5.1-py2.py3-none-any.whl (47.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for elasticsearch-curator-3.5.1.tar.gz
Algorithm Hash digest
SHA256 8aa739cf9778168239a897f804eb962e865fdfa761b15404cd0f584535e6d460
MD5 d1e7908ae849ec9d3b09331ba98e0a7e
BLAKE2b-256 4b6625a9a1cae5698a263977da5513e01f033a6a929e9fb754685a6250d6632d

See more details on using hashes here.

File details

Details for the file elasticsearch_curator-3.5.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for elasticsearch_curator-3.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 132cc79dd6570895b40642913ac71d339feaa6ceea9194397af009702a9e1d95
MD5 6da1a9c2724f9103e311e3592bdba3fc
BLAKE2b-256 54ec8ba196af1d703c56ef26a76aba55e2fc28673c77fd38bd4591981b353801

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