====== heartbeat installatie======
[[elk_stack:elk_stack|{{ :elk_stack:icon.jpg?120|}}]]
===== 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|ELK stack repository]] voor de repository settings.
===== configuratie =====
YAML: gevoelig voor spaties, inspringen, etc ...
- open ''/etc/heartbeat/heartbeat.yml''
- activeer[[elk_stack:sample_dashboards_activeren|sample 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: ""
- schakel [[elk_stack:logging_naar_syslog_uistschakelen|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 =====
* [[elk_stack:index|maak een index aan]]
===== meer info =====
- [[https://www.elastic.co/guide/en/beats/heartbeat/current/index.html|ELK website:heartbeat]]
{{tag>elk_stack hearbeat}}