Elasticsearch Curator helps you curate, or manage, your Elasticsearch indices by:
- Obtaining the full list of indices from the cluster, as the actionable list
- Iterating through a list of user-defined filters to progressively remove indices from the actionable list as needed.
Our Chart deletes all indices prefixed with either logstash-
or logsystemd
older than 14 days.
helm repo add cnct https://charts.cnct.io
helm repo update
helm install cnct/curator --set security.password="changeme"
helm install --name my-release --namespace my-namespace ./curator --set security.password="changeme"
To install from local, overriding the base image and tag directly:
helm install --name my-release --namespace my-namespace \
--set image.name=bobrik/curator \
--set image.tag=5.2.0 \
./curator --set security.password="changeme"
To install from local, overriding with a values file:
helm install --name my-release --namespace my-namespace \
--values ./staging-values.yaml \
./curator --set security.password="changeme"
In which the file ./staging-values.yaml
contains:
image:
name: bobrik/curator
tag: 5.2.0
# sets the cron job to execute everyday at 2am
schedule: "00 2 * * *"
description:
Delete indices older than 7 days and prefixed with logstash-.
filters:
- filtertype: pattern
kind: prefix
value: "logstash-"
exclude: False
- filtertype: age
source: name
timestring: '%Y.%m.%d'
direction: older
unit: days
unit_count: 7
field: null
stats_result: null
epoch: null
exclude: False
The following tables lists the configurable parameters of the Curator chart and their default values.
Parameter | Description | Default |
---|---|---|
name |
Name of the chart | curator |
image |
FQDN repository/image name | quay.io/samsung_cnct/curator-container |
schedule |
The cron schedule | 30 3 * * * |
action |
Name of the action | delete_indices |
logstashDescription |
Description of the logstash action | <see values.yaml> |
logsystemdDescription |
Description of the logsystemd action | <see values.yaml> |
options |
Options of the action | <see values.yaml> |
logstashFilters |
Filters for logstash action | <see values.yaml> |
logsystemdFilters |
Filters for logsystemd action | <see values.yaml> |
client |
Client configuration | <see values.yaml> |
logging |
Logging configuration | <see values.yaml> |
security.password |
Logging configuration | <see values.yaml> |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Created and maintained by the Samsung Cloud Native Computing Team.