Lou’s Lab

Voor ik verga tot stof en as, wil ik weten hoe de wereld was (RvhG)

User Tools

Site Tools


elk_stack:heartbeat_installatie

heartbeat installatie

context

dit document beschrijft de installatie van heartbeat, een beats utility waarmee je de beschikbaarheid van servers/services kunt monitoren.

YUM

  1. installeer heartbeat:
    sudo yum install heartbeat-elastic

    Zie: ELK stack repository voor de repository settings.

configuratie

Important: YAML: gevoelig voor spaties, inspringen, etc …

  1. open /etc/heartbeat/heartbeat.yml
  2. voeg volgende lijn toe aan section General:
    logging.metrics.enabled: false
  3. configureer ouput settings voor:
    1. logstash
      output.logstash:
        # The Logstash hosts
        #hosts: ["localhost:5044"] 
    2. kibana
      setup.kibana:
        host: "<kibana_url>"
  4. configureer logging:
    logging.level: debug
    logging.to_files: true
    logging.files:
      path: /var/log/heartbeat
      name: heartbeat
      keepfiles: 7
      permissions: 0644
  1. schakel internal metrics uit:
    monitoring.enabled: false
  2. bewaar het bestand.
  3. test de configuratie:
    sudo hearbeat test config 
  4. start heartbeat:
    sudo systemctl start heartbeat-elastic
  5. setup autostart:
    sudo systemctl enable heartbeat-elastic

Kibana

meer info

elk_stack/heartbeat_installatie.txt · Last modified: 2020/03/18 14:48 by koen