Skip to content

jkumar-roambee/es-curator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Docker hub image

Configuration Environment Variables

This image will periodically run .

  • PERIOD : defines period (in seconds) between runs of curator; default is 86400 seconds (1 day)
  • ES_HOST : defines the hostname of the Elasticsearch node to contact; default is master
  • DELETE_AGE : defines what age (and older) of indices will be deleted; default is 45

Configuration filters

The image comes with basic, but functional, configuration files that utilize the environment variables above. The actions configuraion will delete indices that are prefixed with "filebeat-", "logstash-" or "metricbeat-" that are older than $DELETE_AGE.

The configuration files are:

  • /etc/curator/config.yml
  • /etc/curator/actions.yml

Executing container

docker run -it -d --name es-curator -e PERIOD=86400 -e ES_HOST=elasticsearch-host -e DELETE_AGE=45 jogendrajangid/es-curator

You can replace execting configuration file by attachment over the directory using '-v' like.

docker run -it -d --name es-curator -v configpath:/etc/curator -e PERIOD=86400 -e ES_HOST=elasticsearch-host -e DELETE_AGE=45 jogendrajangid/es-curator

Note: We have used sleep $PERIOD in the startup script. Process will be in sleep mode in the container and execute in the $PERIOD interval

For more information :- elasticsearch-curator

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 63.1%
  • Shell 36.9%