dit document beschrijft de werking van Metricbeat
output.elasticsearch: hosts: ["localhost:9200"]
setup.kibana: host: "localhost:5601"
#output.logstash: #hosts: ["localhost:5044"]
logging.level: debug logging.to_files: true logging.files: path: /var/log/metricbeat logging.metrics.enabled: false
metricbeat test config
sudo systemctl restart metricbeat
setup.dashboards.enabled: true
sudo systemctl restart metricbeat
fout:
ERROR instance/beat.go:933 Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/api/status fails: ... Get http://localhost:5601/api/status: dial tcp 127.0.0.1:5601: connect: connection refused. Response: .
oorzaak:filebeat maakt verbinding op Kibana API endpoint. Indien niet expliciet geconfigureerd, gaat filebeat uit van localhost. Als kibana luistert op ander adres, voeg dit dan als volgt toe in metricbeat.yml:
setup.kibana: # Kibana Host # Scheme and port can be left out and will be set to the default (http and 5601) # In case you specify and additional path, the scheme is required: http://localhost:5601/path # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601 host: "<ipKibanaHost>:5601"