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](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-5.8.4.tar.gz (235.8 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-5.8.4-py2.py3-none-any.whl (106.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: elasticsearch-curator-5.8.4.tar.gz
  • Upload date:
  • Size: 235.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for elasticsearch-curator-5.8.4.tar.gz
Algorithm Hash digest
SHA256 806232378d5ef91733b889595fb9d88d923e906cf8d8e8801a4e556c7ed3d32a
MD5 9528cc131977ceefacc75c49114a4f96
BLAKE2b-256 b90431b16183264b086518b527eb10327524110bddf44f4c8861fd56a604afc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: elasticsearch_curator-5.8.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 106.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for elasticsearch_curator-5.8.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 012f4d880c15c3888ad810bc36c977174f39d0228bd8497986c33467a32e93c0
MD5 b71d5f28089809c8d22d59a716e6595e
BLAKE2b-256 ccea997d2d2386cd3beab4f660a4113d441cec110617806baffd322654744778

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