logstash-index-cleaner
THIS PROJECT IS DEPRECATED! USE elasticsearch-curator: https://github.com/elasticsearch/curator
Delete logstash indexes older than n days from ElasticSearch.
$ logstash-index-cleaner -h
usage: logstash-index-cleaner [-h] [-v] [--host HOST] [--port PORT]
[-t TIMEOUT] [-p PREFIX] [-s SEPARATOR]
[-H HOURS_TO_KEEP] [-d DAYS_TO_KEEP] [-n]
Delete old logstash indices from Elasticsearch.
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--host HOST Elasticsearch host.
--port PORT Elasticsearch port
-t TIMEOUT, --timeout TIMEOUT
Elasticsearch timeout
-p PREFIX, --prefix PREFIX
Prefix for the indices. Indices that do not have this
prefix are skipped.
-s SEPARATOR, --separator SEPARATOR
Time unit separator
-H HOURS_TO_KEEP, --hours-to-keep HOURS_TO_KEEP
Number of hours to keep.
-d DAYS_TO_KEEP, --days-to-keep DAYS_TO_KEEP
Number of days to keep.
-n, --dry-run If true, does not perform any changes to the
Elasticsearch indices.
Project history
This is a fork of https://github.com/crashdump/logstash-elasticsearch-scripts.
Since ElasticSearch 0.90 all fields are compressed, and some benchmarks show that nothing improves optimizing those already compressed indices. That’s why this fork does not include the original logstash_index_optimize.py
Optimizations references:
Metadata
Release files for logstash-index-cleaner 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| logstash-index-cleaner-0.2.4.tar.gz | 4.8 kB | Without provenance | Details for logstash-index-cleaner-0.2.4.tar.gz |
Release files / logstash-index-cleaner-0.2.4.tar.gz
| Download URL | logstash-index-cleaner-0.2.4.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d3156217face07dca1b3b174cb2588952a2b53614e551caa053641794f0503c
|
|
BLAKE2b-256 checksum How to use checksums |
62a4835187b1957967ca6f9f3ab643ae234c0dd4b4de21c17b4be3626710780b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for logstash-index-cleaner 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.