Code Monkey home page Code Monkey logo

docker-elasticsearch-curator's Introduction

docker-elasticsearch-curator

Build Status Docker Pulls

Description

The purpose of this image is to periodically clean the Elasticsearch indexes leaving only a configurable amount of days worth of logging in the system.

Usage

docker run -d \
  -e ELASTICSEARCH_HOSTS=es1 \
	-e INTERVAL_IN_HOURS=24 \
	-e SNAPSHOT_REPOSITORY=backup \
	-e SNAPSHOT_OLDER_THAN_IN_DAYS=10 \
	-e DELETE_OLDER_THAN_IN_DAYS=10 \
  --link es1:elasticsearch \
	gerrrr/elasticsearch-curator

where es1 is the name of the elasticsearch container.

Curator configuration file parameters (from https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html). Defaults are the same as in the official documentation.

  • ELASTICSEARCH_HOSTS
  • ELASTICSEARCH_PORT
  • URL_PREFIX
  • USE_SSL
  • CERTIFICATE
  • CLIENT_CERT
  • CLIENT_KEY
  • SSL_NO_VALIDATE
  • ELASTICSEARCH_HTTP_AUTH
  • TIMEOUT
  • MASTER_ONLY
  • LOG_LEVEL
  • LOG_FILE
  • LOG_FORMAT
  • BLACK_LIST

Snapshot/Delete configuration:

  • INTERVAL_IN_HOURS: The amount of time between two curator runs
  • SNAPSHOT_OLDER_THAN_IN_DAYS: Indicates all logs with a date exceeding this age can be snapshotted.
  • SNAPSHOT_REPOSITORY: The repository for the logs to be snapshotted.
  • SNAPSHOT_INDEX_PATTERN: Snapshots only indexes matching the pattern.
  • DELETE_OLDER_THAN_IN_DAYS: Indicates all logs with a date exceeding this age can be deleted.
  • DELETE_INDEX_PATTERN: Deletes only indexes matching the pattern.

docker-elasticsearch-curator's People

Contributors

gerrrr avatar jverhoeven avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.