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

7 lines
228 B
Bash

#!/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