Clever/elasticsearch-toolbox

Name: elasticsearch-toolbox

Owner: Clever

Description: Maintenance tooling for Elasticsearch

Created: 2016-04-06 21:12:27.0

Updated: 2016-11-08 07:13:52.0

Pushed: 2018-01-06 00:33:13.0

Homepage: null

Size: 73

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Elasticsearch Toolbox

A collection of tools for maintaining an Elasticsearch cluster. Most tools are wrapped up into a small web server with a UI. These tools are are generally written with log searching as the primary use case.

Tools

API

Status

The following endpoints return status on the Elasticsearch Cluster being managed:

Indices

Alias management is configured in config.yml with the following section:

ces:
efix: # Only indices with the prefix here will be considered when pruning
ys: # Number of days worth of indices to keep
earAt: # cron schedule of when to prune old indices

You can manually trigger this operation by making a GET request to /indices/clear

Aliases

Alias management is configured in config.yml with the following section:

ces:
iases: # Contains a map of alias names to the number of indices to include in them:
<alias_name>: <number of indices to include> 
updateAt: # cron schedule of when to update the aliases

You can manually trigger this operation by making a GET request to /aliases/update

Replicas

Replica management is configured in config.yml with the following section:

ces:
plicas:
days: # number of days worth of indices to retain replicas for
value: # new replica count to set of indices older than `days`
updateAt: # cron schedule of when to update replica counts

You can manually trigger this operation by making a GET request to /replicas/update

Local Development

Before running locally, you need to set the following environment variables:

install
run dev-server

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.