Logo

this tutorial will contain:

  • Installing Heartbeat

About

Heartbeat is one of elastic component that check services status periodically we will explain the steps and its featuers

Getting Started

In this tutorial you need to have linux Fedora please complite the the setup in the link ElasticSearch tutorial

we will use the ES and Kibana scripts to install the packages

Installation

  1. Go to observability section and select uptime

  2. select add monitors with heartbeat

  3. Download heartbeat

    curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-8.2.0-x86_64.rpm
    sudo rpm -vi heartbeat-8.2.0-x86_64.rpm
  4. open and enable username,password,https

    sudo nano /etc/heartbeat/heartbeat.yml
  5. Add the certificate authorities

    ```sh ssl.ca_trusted_fingerprint: "" ```
  6. or by use cert fingerprint

    ssl.certificate_authorities: ["/etc/elasticsearch/certs/http_ca.crt"]
  7. copy the output of default elastic cert by openssl and paste it in the yml file

    openssl x509 -fingerprint -sha256 -noout -in /etc/elasticsearch/certs/http_ca.crt | awk --field-separator="=" '{print $2}' | sed 's/://g'
  8. configure http monitor

  9. Check setup and reachability

    cd /usr/share/heartbeat/
    sudo cp /etc/heartbeat/heartbeat.yml .
    sudo ./bin/heartbeat test config
    sudo ./bin/heartbeat setup

  10. Run heartbeat script

sudo systemctl start heartbeat-elastic
  1. configure http monitor

References

(back to top)