ESamir / elasticsearch-support-diagnostics

Support diagnostics plugin for elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Support Diagnostics Script

The diagnostic script is installed in ./bin/support-diagnostics.sh (or .\bin\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)

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.

About

Support diagnostics plugin for elasticsearch

License:Apache License 2.0


Languages

Language:Shell 59.6%Language:PowerShell 40.4%