elk_stack:heartbeat_installatie
Table of Contents
heartbeat installatie
context
dit document beschrijft de installatie van heartbeat, een beats utility waarmee je de beschikbaarheid van servers/services kunt monitoren.
YUM
- installeer heartbeat:
sudo yum install heartbeat-elastic
Zie: ELK stack repository voor de repository settings.
configuratie
Important: YAML: gevoelig voor spaties, inspringen, etc …
- open
/etc/heartbeat/heartbeat.yml
- activeersample dashboards
- voeg volgende lijn toe aan section General:
logging.metrics.enabled: false
- configureer ouput settings voor:
- logstash
output.logstash: # The Logstash hosts #hosts: ["localhost:5044"]
- kibana
setup.kibana: host: "<kibana_url>"
- schakel logging_naar_syslog_uit
- configureer logging:
logging.level: debug logging.to_files: true logging.files: path: /var/log/heartbeat name: heartbeat keepfiles: 7 permissions: 0644
- schakel internal metrics uit:
monitoring.enabled: false
- bewaar het bestand.
- test de configuratie:
sudo hearbeat test config
- start heartbeat:
sudo systemctl start heartbeat-elastic
- setup autostart:
sudo systemctl enable heartbeat-elastic
Kibana
meer info
elk_stack/heartbeat_installatie.txt · Last modified: 2020/03/18 14:48 by koen