I've been trying to implement kibana in my aws. i have 4 instances in total
elasticsearch
2.logstash
kibana,filebeat and metricbeat
app instance (nginx)
i would like, from kibana, be able to display meatricbeat of my app instance.
ive been told to enable http module metricbeat and pass in host the app ip, which i did, and after that, i cannot start metricbeat service anymore. any suggestion please?
this is the error.
● metricbeat.service - Metricbeat is a lightweight shipper for metrics.
Loaded: loaded (/lib/systemd/system/metricbeat.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-05-05 00:10:44 UTC; 4s ago
Docs: https://www.elastic.co/products/beats/metricbeat
Process: 1757 ExecStart=/usr/share/metricbeat/bin/metricbeat $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS (code=exited, status=1/FAILURE)
Main PID: 1757 (code=exited, status=1/FAILURE)
May 05 00:10:44 ip-10-0-105-101 systemd[1]: metricbeat.service: Main process exited, code=exited, status=1/FAILURE
May 05 00:10:44 ip-10-0-105-101 systemd[1]: metricbeat.service: Failed with result 'exit-code'.
May 05 00:10:44 ip-10-0-105-101 systemd[1]: metricbeat.service: Service hold-off time over, scheduling restart.
May 05 00:10:44 ip-10-0-105-101 systemd[1]: metricbeat.service: Scheduled restart job, restart counter is at 5.
May 05 00:10:44 ip-10-0-105-101 systemd[1]: Stopped Metricbeat is a lightweight shipper for metrics..
May 05 00:10:44 ip-10-0-105-101 systemd[1]: metricbeat.service: Start request repeated too quickly.
May 05 00:10:44 ip-10-0-105-101 systemd[1]: metricbeat.service: Failed with result 'exit-code'.
May 05 00:10:44 ip-10-0-105-101 systemd[1]: Failed to start Metricbeat is a lightweight shipper for metrics..
May 05 00:38:36 ip-10-0-105-101 systemd[1]: Failed to start Metricbeat is a lightweight shipper for metrics..
-- Subject: Unit metricbeat.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit metricbeat.service has failed.
--
-- The result is RESULT.
May 05 00:38:41 ip-10-0-105-101 sudo[1837]: ubuntu : TTY=pts/0 ; PWD=/home/ubuntu ; USER=root ; COMMAND=/bin/systemctl status metricbeat
May 05 00:38:41 ip-10-0-105-101 sudo[1837]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
May 05 00:38:41 ip-10-0-105-101 sudo[1837]: pam_unix(sudo:session): session closed for user root
May 05 00:38:42 ip-10-0-105-101 sudo[1840]: ubuntu : TTY=pts/0 ; PWD=/home/ubuntu ; USER=root ; COMMAND=/bin/systemctl start metricbeat
May 05 00:38:42 ip-10-0-105-101 sudo[1840]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
May 05 00:38:42 ip-10-0-105-101 systemd[1]: metricbeat.service: Start request repeated too quickly.
May 05 00:38:42 ip-10-0-105-101 systemd[1]: metricbeat.service: Failed with result 'exit-code'.
May 05 00:38:42 ip-10-0-105-101 systemd[1]: Failed to start Metricbeat is a lightweight shipper for metrics..
-- Subject: Unit metricbeat.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit metricbeat.service has failed.
--
-- The result is RESULT.
May 05 00:38:42 ip-10-0-105-101 sudo[1840]: pam_unix(sudo:session): session closed for user root
May 05 00:38:47 ip-10-0-105-101 filebeat[1155]: 2020-05-05T00:38:47.528Z INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"be
My mistake was so basic. When i provisioned my app instance with chef and build a image aws image, i forgot to include my beats cookbook to send data to elasticsearch. Once done that one i didnt need to activate the http forwarding.
The only thing i am missing, i can visualize only the filebeat from my app instance but not the metricbeat. Which from my kibana instance, i can see only the metric and not the filebeat. is that normal?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.