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

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.

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.

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

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 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 elastic/curator.

Project details


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-internal-5.8.5.tar.gz (236.5 kB view details)

Uploaded Source

File details

Details for the file elasticsearch-curator-internal-5.8.5.tar.gz.

File metadata

File hashes

Hashes for elasticsearch-curator-internal-5.8.5.tar.gz
Algorithm Hash digest
SHA256 f04f68395be71769b30a5914feaad53687623a7dbbd89abc293ad2e62271504e
MD5 f4653f5a417fb9404ce8af53adff2f71
BLAKE2b-256 53c702bf119c113f184288ad84bee43fcc33669de9c035b27fac5ba000afc823

See more details on using hashes here.

Supported by

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