curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-5.4.2-amd64.deb sudo dpkg -i heartbeat-5.4.2-amd64.deb
heartbeat.monitors: - type: http urls: ["http://localhost:80"] schedule: '@every 10s' - type: icmp schedule: '*/5 * * * * * *' hosts: ["myhost"] - type: tcp schedule: '@every 5s' hosts: ["myhost:7"] # default TCP Echo Protocol check.send: "Check" check.receive: "Check" - type: http schedule: '@every 5s' urls: ["http://localhost:80/service/status"] check.response.status: 200 output.elasticsearch: hosts: ["172.16.2.21:9200"]
service heartbeat { start | status | stop}