Git Product home page Git Product logo

elk-utils's Introduction

ELK-utils

Utilities for working with the ELK (Elasticsearch, Logstash, Kibana) stack

elkvacuate.rb

This script is for easily adding and removing nodes from a running Elasticsearch cluster by including or excluding the node from every index that exists on the cluster.

It uses exclude._host and include._host to manage which Elasticsearch nodes are available to shards.

Usage:

Before running this script, add or remove the nodes from your ES cluster settings and mapping templates as needed.

To remove a node from the cluster: ./elkvacuate.rb -a evacuate -h nodetoremove.example.com -u elkmaster.example.com -p 1234

To add a node to the cluster: ./elkvacuate.rb -a invacuate -h nodetoremove.example.com -u elkmaster.example.com -p 1234

copy_index_mapping.py

This script copies the mapping for a specific type from today's index in Elasticsearch, and puts it into tomorrow's index. The index for tomorrow is created if it doesn't exist.

Usage:

Run as: copy_index_mapping.py --host <hostname> --index-prefix logstash -t <type>

If you have multiple masters and schedule this script to run on all of them, you can use the -o switch to ensure it only gets executed on the host which is the current cluster master.

There is currently no support for authentication.

Chef

This directory contains example roles, cookbooks, and data bags that can be used to provision and maintain an ELK cluster relatively easily. These Chef code samples are for example purposes only; they are provided as-is and no plans are made to maintain or update them.

irccat

This directory contains an example script containing commands that can be used with an irc bot such as irccat for monitoring and managing an Elasticsearch cluster. These commands are mostly wrappers around Elasticsearch's API. These code samples are also provided as is for example purposes only, and will not be maintained or updated.

elk-utils's People

Contributors

avleen avatar kdaniels 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.