[root@rbdcelastic01 metricbeat]# metricbeat modules list
Enabled:
Disabled:
[root@rbdcelastic01 metricbeat]# vim metricbeat.yml
# =========================== Modules configuration ============================
metricbeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
# Set to true to enable config reloading
reload.enabled: true
# Period on which files under path should be checked for changes
#reload.period: 10s
[root@rbdcelastic01 metricbeat]# ls /etc/metricbeat/modules.d/
activemq.yml.disabled ceph-mgr.yml.disabled docker.yml.disabled golang.yml.disabled kibana-xpack.yml.disabled mssql.yml.disabled prometheus.yml.disabled tomcat.yml.disabled
aerospike.yml.disabled ceph.yml.disabled dropwizard.yml.disabled graphite.yml.disabled kibana.yml.disabled munin.yml.disabled rabbitmq.yml.disabled traefik.yml.disabled
airflow.yml.disabled cloudfoundry.yml.disabled elasticsearch-xpack.yml.disabled haproxy.yml.disabled kubernetes.yml.disabled mysql.yml.disabled redisenterprise.yml.disabled uwsgi.yml.disabled
apache.yml.disabled cockroachdb.yml.disabled elasticsearch.yml.disabled http.yml.disabled kvm.yml.disabled nats.yml.disabled redis.yml.disabled vsphere.yml.disabled
awsfargate.yml.disabled consul.yml.disabled enterprisesearch-xpack.yml.disabled ibmmq.yml.disabled linux.yml.disabled nginx.yml.disabled sql.yml.disabled windows.yml.disabled
aws.yml.disabled containerd.yml.disabled enterprisesearch.yml.disabled iis.yml.disabled logstash-xpack.yml.disabled openmetrics.yml.disabled stan.yml.disabled zookeeper.yml.disabled
azure.yml.disabled coredns.yml.disabled envoyproxy.yml.disabled istio.yml.disabled logstash.yml.disabled oracle.yml.disabled statsd.yml.disabled
beat-xpack.yml.disabled couchbase.yml.disabled etcd.yml.disabled jolokia.yml.disabled memcached.yml.disabled php_fpm.yml.disabled syncgateway.yml.disabled
beat.yml.disabled couchdb.yml.disabled gcp.yml.disabled kafka.yml.disabled mongodb.yml.disabled postgresql.yml.disabled system.yml
warkolm
(Mark Walkom)
September 8, 2022, 9:42pm
2
Unfortunately you have only posted the output of some commands without any real explanation of what you are having issues with, so it's hard for us to help you here.
Hi Warkolm,
I'm trying to enable elasticsearch-xpack module on the the elasticsearch server so I can monitor the stack in Kibana. However, when I run the command metricbeat modules enable elasticsearch-xpack the module is not found. So I try to list the modules metricbeat has (metricbeat modules list) but the results are empty for enabled and disabled.
My apologies for the confusion.
warkolm
(Mark Walkom)
September 11, 2022, 4:38am
4
It'd be good if you shared the commands you are running along with the responses you are getting.
Here is one command:
[root@rbdcelastic01 metricbeat]# metricbeat modules list
Enabled:
Disabled:
[root@rbdcelastic01 metricbeat]# vim metricbeat.yml
Here are a few more commands. Looks like .metricbeat.yml file cannot be found from enabling metricbeats.
[root@rbdcelastic01 jkrinsky]# metricbeat modules enable /etc/metricbeat/modules.d/elasticsearch-xpack
Error initializing beat: error loading config file: stat metricbeat.yml: no such file or directory
[root@rbdcelastic01 jkrinsky]# ls /etc/metricbeat/
fields.yml metricbeat.reference.yml metricbeat.yml metricbeat.yml.backup modules.d
[root@rbdcelastic01 jkrinsky]# ls /etc/metricbeat/modules.d/
activemq.yml.disabled ceph-mgr.yml.disabled docker.yml.disabled golang.yml.disabled kibana-xpack.yml.disabled mssql.yml.disabled prometheus.yml.disabled tomcat.yml.disabled
aerospike.yml.disabled ceph.yml.disabled dropwizard.yml.disabled graphite.yml.disabled kibana.yml.disabled munin.yml.disabled rabbitmq.yml.disabled traefik.yml.disabled
airflow.yml.disabled cloudfoundry.yml.disabled elasticsearch-xpack.yml.disabled haproxy.yml.disabled kubernetes.yml.disabled mysql.yml.disabled redisenterprise.yml.disabled uwsgi.yml.disabled
apache.yml.disabled cockroachdb.yml.disabled elasticsearch.yml.disabled http.yml.disabled kvm.yml.disabled nats.yml.disabled redis.yml.disabled vsphere.yml.disabled
awsfargate.yml.disabled consul.yml.disabled enterprisesearch-xpack.yml.disabled ibmmq.yml.disabled linux.yml.disabled nginx.yml.disabled sql.yml.disabled windows.yml.disabled
aws.yml.disabled containerd.yml.disabled enterprisesearch.yml.disabled iis.yml.disabled logstash-xpack.yml.disabled openmetrics.yml.disabled stan.yml.disabled zookeeper.yml.disabled
azure.yml.disabled coredns.yml.disabled envoyproxy.yml.disabled istio.yml.disabled logstash.yml.disabled oracle.yml.disabled statsd.yml.disabled
beat-xpack.yml.disabled couchbase.yml.disabled etcd.yml.disabled jolokia.yml.disabled memcached.yml.disabled php_fpm.yml.disabled syncgateway.yml.disabled
beat.yml.disabled couchdb.yml.disabled gcp.yml.disabled kafka.yml.disabled mongodb.yml.disabled postgresql.yml.disabled system.yml
[root@rbdcelastic01 jkrinsky]# metricbeat modules enable /etc/metricbeat/elasticsearch-xpack
Error initializing beat: error loading config file: stat metricbeat.yml: no such file or directory
[root@rbdcelastic01 jkrinsky]#
Ok I think I got working...
[root@rbdcelastic01 jkrinsky]# metricbeat modules --e --path.config=/etc/metricbeat/ enable elasticsearch-xpack
{"log.level":"info","@timestamp":"2022-09-12T10:24:14.828-0400","log.origin":{"file.name":"instance/beat.go","file.line":702},"message":"Home path: [/usr/share/metricbeat/bin] Config path: [/etc/metricbeat/] Data path: [/usr/share/metricbeat/bin/data] Logs path: [/usr/share/metricbeat/bin/logs]","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-09-12T10:24:14.829-0400","log.origin":{"file.name":"instance/beat.go","file.line":710},"message":"Beat ID: b0efc293-97b4-4b3c-80f9-ee12e8ca3818","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2022-09-12T10:24:17.835-0400","log.logger":"add_cloud_metadata","log.origin":{"file.name":"add_cloud_metadata/provider_aws_ec2.go","file.line":81},"message":"read token request for getting IMDSv2 token returns empty: Put \"http://169.254.169.254/latest/api/token\": context deadline exceeded (Client.Timeout exceeded while awaiting headers). No token in the metadata request will be used.","service.name":"metricbeat","ecs.version":"1.6.0"}
Module elasticsearch-xpack is already enabled
ls /etc/metricbeat/modules.d/
elasticsearch-xpack.yml
elasticsearch-xpack is not showing disabled anymore. Will see if I can pull them into logstash
warkolm
(Mark Walkom)
September 13, 2022, 12:39am
7
You should just be able to run metricbeat modules enable elasticsearch-xpack
?
I thought so to but it wouldn’t find the metricbeat.yml file. I had to specify the path. I am having a hard time now with connecting metricbeat to logstash and then log stash back to Elasticsearch for Kibana to see on a windows device.
system
(system)
Closed
October 11, 2022, 1:07am
9
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.