# Metricbeat modules list is empty

**URL:** <https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 8, 2022, 9:39pm UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020 "2022-09-08T21:39:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Technolust](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Technolust](https://discuss.elastic.co/u/Technolust)\
**Post date:** [September 8, 2022, 9:39pm UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/1 "2022-09-08T21:39:55Z")

</div>

[root@rbdcelastic01 metricbeat]# metricbeat modules list  
Enabled:

Disabled:  
[root@rbdcelastic01 metricbeat]# vim metricbeat.yml

```auto
# =========================== 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

```

```auto
[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

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 8, 2022, 9:42pm UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/2 "2022-09-08T21:42:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Technolust](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Technolust](https://discuss.elastic.co/u/Technolust)\
**Post date:** [September 9, 2022, 12:52pm UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/3 "2022-09-09T12:52:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 11, 2022, 4:38am UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/4 "2022-09-11T04:38:19Z")

</div>

It'd be good if you shared the commands you are running along with the responses you are getting.

---

<div class="post-metadata">

**Author:** ![Technolust](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Technolust](https://discuss.elastic.co/u/Technolust)\
**Post date:** [September 12, 2022, 2:21pm UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/5 "2022-09-12T14:21:28Z")

</div>

Here is one command:

```auto
[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.

```auto
[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]#

```

---

<div class="post-metadata">

**Author:** ![Technolust](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Technolust](https://discuss.elastic.co/u/Technolust)\
**Post date:** [September 12, 2022, 2:27pm UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/6 "2022-09-12T14:27:04Z")

</div>

Ok I think I got working...

```auto
[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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 13, 2022, 12:39am UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/7 "2022-09-13T00:39:48Z")

</div>

You should just be able to run `metricbeat modules enable elasticsearch-xpack`?

---

<div class="post-metadata">

**Author:** ![Technolust](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Technolust](https://discuss.elastic.co/u/Technolust)\
**Post date:** [September 13, 2022, 1:06am UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/8 "2022-09-13T01:06:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 11, 2022, 1:07am UTC](https://discuss.elastic.co/t/metricbeat-modules-list-is-empty/314020/9 "2022-10-11T01:07:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
