You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael Reber 0670ee27ff Edit 5 months ago Edit 5 months ago

ELK Healthcheck

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.


  • 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.