Skip to content

Cyb3rSn0rlax/ELK_Health_Check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ELK_Health_Check

This was a little project for me to start learning GoLang for the first time. That is why my code is so messy :D

ELK_Health_Check

This is a basic script that runs multiple checks for an Elasticsearch cluster health and saves everything to text files. The script runs the following checks :

  1. Unavailable nodes based on the number of nodes you provide in your cluster.
  2. Checks indices status (Green, Yellow, Red). Warns you if it detects Yellow indices or Red ones.
  3. Verifies cluster's health using _cluster/health API call.
  4. Checks allocations status using _cat/allocation API call
  5. Looks and warns you for unassigned shards;
  6. Creates a directory from where it was run and saves every output to files.

Notes

  • At the moment the script only supports elasticsearch nodes using TLS.
  • I will try to use elasticsearch's golang module for next versions.
  • I am also planning on adding more options and tasks in the future.
  • If you have any remarks please let me know, twitter @Cyb3rSn0rlax.

About

Script for automating basic health check tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages