ElasitcSearch

ElasitcSearch

ElasticSearch Check validates connectivity to an ElasticSearch instance and optionally checks for username and password authentication (if the X-Pack extension is enabled).

Usage with Binary

./wait4it -type=elasticsearch -h=http://127.0.0.1 -p=9200 -t=60

Usage with Docker

docker run ph4r5h4d/wait4it -type=elasticsearch -h=http://127.0.0.1 -p=9200 -t=60

Environment Variables

VariableDescriptionDefault
W4IT_TYPEThe type of check (set to elasticsearch for ElasticSearch check).-
W4IT_TIMEOUTTimeout in seconds.30
W4IT_HOSTThe host to check.127.0.0.1
W4IT_PORTThe port to check on the ElasticSearch host.9200

Command-Line Arguments

ArgumentDescriptionDefault
-typeThe type of check (set to elasticsearch).-
-tTimeout in seconds.30
-hThe host to check.127.0.0.1
-pThe port to check on the ElasticSearch host.9200

Notes

ℹ️
  • Environment variables override command-line arguments.
  • Multiple hosts and cluster checks are not supported at the moment.
  • Username/password authentication is only supported when the X-Pack extension is enabled. If X-Pack is not activated, the username and password are ignored.

Exit Codes

CodeMeaning
0Connection successful.
1Timed out.
2Validation error or incorrect input.