Coder Social home page Coder Social logo

harmy / lambda-curator Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 8.0 22 KB

Lambda curator is a lambda function deletes old AWS ElasticSearch indices using curator.

Home Page: https://github.com/harmy/lambda-curator

License: Apache License 2.0

Python 66.03% HCL 24.67% Makefile 9.30%

lambda-curator's Introduction

Lambda Curator

Lambda curator is a lambda function deletes old AWS ElasticSearch indices using curator.

All you need to do is tagging existing ES cluster.

Getting Started

Installation

It's as easy as launching a CloudFormation (or Terraform) stack and setting the prefix=retention_period tag on existing ES cluster. All the required infrastructure and configuration will be created automatically, so you can get started as fast as possible.

Launch

A single installation can handle all enabled clusters across all available AWS regions, but can be restricted to fewer regions if desired.

Usage

By adding one or more tags to existing ES cluster, you enabled lambda curator to manage it.

A tag should follow one pattern, which is prefix=retention_period.

ScreenShot

Example:

Key Value Comment
logstash- 7d indices starting with logstash- and older than 7 days will be deleted
curator.default 1m indices not matched by other prefixes and older than 1 month will be deleted

A manageable index name takes the following form:

^prefix-(\d{4}([-/.]w?\d{2}){,3})$

Example:

Index Comment
logstash-2018-02-01-01 OneHour Rotation
logstash-2018-02-01 OneDay Rotation
logstash-2018-02 OneMonth Rotation
logstash-2018-w02 OneWeek Rotation
logstash-2018 OneYear Rotation
logstash-2018.05.10 . as delimiter
logstash-2018/05/10 / as delimiter

A retention period takes the following form:

\d+[y|m|w|d|h]

Example:

Retention Comment
12h retain 12 hours
7d retain 7 days
1w retain 1 week
1m retain 1 month
1y retain 1 year

License

This software is distributed under the terms of the Apache-2.0 license.

lambda-curator's People

Contributors

harmy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lambda-curator's Issues

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.