Giter VIP home page Giter VIP logo

elasticsearch-support-diagnostics's Introduction

elasticsearch-support-diagnostics

elasticsearch-support-diagnostics is an elasticsearch plugin designed to assist users with gathering diagnostic data about their cluster and nodes.

Installation:

./bin/plugin --install elasticsearch/elasticsearch-support-diagnostics

Note for ES 2.0 users: We are working on a java version of the support diagnostic tool that will replace the existing .sh and .bat scripts. For now, if you are running ES 2.0, the above installation command will not work. However, you can download the scripts directly and run them.

Support Diagnostics Script

The diagnostic script is installed in ./bin/support-diagnostics/support-diagnostics.sh (or .\bin\support-diagnostics\support-diagnostics.bat on Windows).

In order to gather the elasticsearch config and logs you must run the script on a node within your elasticsearch cluster. If local data, such as top or netstat are required, it should be run on each node in the cluster. Otherwise, running the script on a single node is sufficient.

Usage

-h  This help message
-H  Elasticsearch hostname:port (defaults to localhost:9200)
-n  On a host with multiple nodes, specify the node name to gather data for. Value should match node.name as defined in elasticsearch.yml
-o  Script output directory (optional, defaults to support-diagnostics.[timestamp].[hostname])
-nc Disable compression (optional)
-r  Collect stats r times (optional, in conjunction with -i , defaults to 1)
-i  Interval in seconds between stats collections (optional, in conjunction with -r , defaults to 60 secs)
-a  Authentication type. Either 'basic' or 'cookie' (optional)
-c  Authentication credentials. Either a path to the auth cookie file or the basic auth usename. You will be prompted for the password unless you specify -p.
-p  Password for authentication. To be used with -c if having this script prompt for a password is undesiarable.

Running on Windows

PowerShell 4.0 and .NET Framework 4.5 are required in order to run the script on Windows, both which come built into Windows Server 2012 and Windows 8.1. If you are running anything earlier than Windows Server 2012 or Windows 8.1, then you may need to install them manually. See How to Install Windows PowerShell 4.0 for more information.

The script can be executed on Windows by calling either support-diagnostics.bat (preferred), or calling the support-diagnostics.ps1 PowerShell script directly. The purpose of the batch file is to enable the script to be run from a PowerShell console as well as the regular Windows command prompt (cmd.exe). It also passes the necessary arguments to bypass the Windows PowerShell execution policy.

Contributing

If you would like to contribute to this plugin, please see the contributing document

elasticsearch-support-diagnostics's People

Contributors

jjfalling avatar pickypg avatar markwalkom avatar w33ble avatar mausch avatar ppf2 avatar

Watchers

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