Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
/ curator Public archive

Lightweight job to delete old Elasticsearch indices from logging

License

Notifications You must be signed in to change notification settings

giantswarm/curator

Repository files navigation

CircleCI Docker Repository on Quay

Curator for Elasticsearch

Simplistic cousin of Elasticsearch curator, created for one purpose only: Delete log indices created by fluentd which are older than a certain number of days.

Configuration

The following environment variables can be used for configuration:

  • ELASTICSEARCH_HOST: Name of the host that's running elasticsearch (default: elasticsearch:9200)
  • RETENTION_DAYS: Number of days to keep indices for (default: 14)
  • INDEX_NAME_PREFIX: Name prefix of the temporal index (default: fluentd-). This can also be a space-separated list of names, which means that there are several indexes per temporal unit.
  • INDEX_NAME_TIMEFORMAT: Temporal string format in the index name (default: %Y.%m.%d)