youtubebeat/vendor/github.com/elastic/beats/metricbeat/module/logstash/_meta/healthcheck.sh

7 lines
228 B
Bash
Raw Normal View History

2018-11-18 11:08:38 +01:00
#!/usr/bin/env bash
# Check that both endpoints are available
curl -f http://localhost:9600/_node || exit 1
curl -f http://localhost:9600/_node/stats || exit 1
curl -f http://localhost:9600/_node/stats | grep '"in":' || exit 1