Git Product home page Git Product logo

lightweight-curator's Introduction

Lightweight Curator for Elasticsearch

Simplistic cousin of Elasticsearch curator, created for one purpose only:

Delete log indices created by fluentd which are above threshold of 80% calculated from total disk size.

Prerequisite

  • OpenShift user is able to create pods in openshift-logging namespace.

Deployment

Comand-line options

Dry_run prints the list of indices which would be passed onto deletion process, but do not execute.

-d --debug
-v --verbose
-n --dry_run

Manually running script for development purposes

Result of running following commands would be newly created lightweight-curator pod in openshift-logging namespace. From within this pod you can run lightweight_curator.py script.

$ oc apply src/cronjob.yaml -n openshift-logging
$ oc rsh deploy/lightweight-curator /bin/bash
$ python /home/lightweight_curator.py

lightweight-curator's People

Contributors

tessg22 avatar marians avatar xh3b4sd avatar ewoutp avatar glitchcrab avatar hectorj2f avatar zeisss avatar theobrigitte avatar calvix avatar

Watchers

James Cloos 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.