GithubHelp home page GithubHelp logo

isabella232 / elasticsearch-data-cleaner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smartling/elasticsearch-data-cleaner

0.0 0.0 0.0 18 KB

Command line tool for removing old Elasticsearch data (indices and types)

License: GNU General Public License v3.0

Ruby 100.00%

elasticsearch-data-cleaner's Introduction

Elasticsearch data cleaner

It is simple command line tool for cleaning old data inside Elasticsearch database

Features

General feature is removing types inside indices. Yes it is rarely case but it can help for removing old data by types

Configuration

For example you need to leave data for the last month, but you have some data which has big size and it doesn't necessary to store it for the whole month. We can remove it by type. Sure you can said that we can store this data in separated indices, but if we need to search information over all our data in Kibana we can't use separated indices.

here is example for this case

---
events-%Y.%m.%d:     # index pattern compatible ruby date format directives
  number: 7          # how many indices script have to keep by pattern above (an index per day)
  future: true       # leave indices with future timestamp. true by default
logstash-%Y.%m.%d:
  number: 31
  future: false
  types:             # types description
    elb:             # type name. there is no patterns
      number: 14
      optimize: true # run _optimize for index after removing this type.
                     # false by default

Installing

from rubygems.org

gem install elasticsearch-data-cleaner

or

gem build elasticsearch-data-cleaner.gemspec
gem install elasticsearch-data-cleaner-<version>.gem

elasticsearch-data-cleaner's People

Contributors

sl-mpodlesnyi 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.