# Module doesn't exist (but it does)

**URL:** <https://discuss.elastic.co/t/module-doesnt-exist-but-it-does/199116>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [September 11, 2019, 5:59pm UTC](https://discuss.elastic.co/t/module-doesnt-exist-but-it-does/199116 "2019-09-11T17:59:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Doles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justin_doles/32/40730_2.png) [@Justin\_Doles](https://discuss.elastic.co/u/Justin_Doles)\
**Post date:** [September 11, 2019, 5:59pm UTC](https://discuss.elastic.co/t/module-doesnt-exist-but-it-does/199116/1 "2019-09-11T17:59:03Z")

</div>

Hi,  
While trying to configure filebeat modules, I keep getting "module doesn't exist". It doesn't matter which module I try. Also the "filebeat modules list" command doesn't any modules. The service does run without issue though.  
sudo /usr/share/filebeat/bin/filebeat modules enable elasticsearch  
Error initializing beat: error loading config file: stat filebeat.yml: no such file or directory

```
sudo /usr/share/filebeat/bin/filebeat modules enable elasticsearch -c /etc/filebeat/filebeat.yml
Module elasticsearch doesn't exist!

ls -l /usr/share/filebeat/module/
total 0
drwxr-xr-x. 4 root root 51 Sep 11 13:04 apache
drwxr-xr-x. 2 root root 24 Sep 11 13:04 apache2
drwxr-xr-x. 3 root root 35 Sep 11 13:04 auditd
drwxr-xr-x. 4 root root 63 Sep 11 13:04 cisco
drwxr-xr-x. 3 root root 52 Sep 11 13:04 coredns
drwxr-xr-x. 7 root root 95 Sep 11 13:04 elasticsearch
drwxr-xr-x. 3 root root 52 Sep 11 13:04 envoyproxy
drwxr-xr-x. 3 root root 21 Sep 11 13:04 googlecloud
drwxr-xr-x. 3 root root 35 Sep 11 13:04 haproxy
drwxr-xr-x. 5 root root 64 Sep 11 13:04 icinga
drwxr-xr-x. 4 root root 33 Sep 11 13:04 iis
drwxr-xr-x. 3 root root 52 Sep 11 13:04 iptables
drwxr-xr-x. 3 root root 35 Sep 11 13:04 kafka
drwxr-xr-x. 3 root root 35 Sep 11 13:04 kibana
drwxr-xr-x. 4 root root 50 Sep 11 13:04 logstash
drwxr-xr-x. 3 root root 35 Sep 11 13:04 mongodb
drwxr-xr-x. 3 root root 17 Sep 11 13:04 mssql
drwxr-xr-x. 4 root root 52 Sep 11 13:04 mysql
drwxr-xr-x. 3 root root 35 Sep 11 13:04 nats
drwxr-xr-x. 3 root root 17 Sep 11 13:04 netflow
drwxr-xr-x. 4 root root 51 Sep 11 13:04 nginx
drwxr-xr-x. 3 root root 38 Sep 11 13:04 osquery
drwxr-xr-x. 3 root root 54 Sep 11 13:04 panw
drwxr-xr-x. 3 root root 35 Sep 11 13:04 postgresql
drwxr-xr-x. 3 root root 17 Sep 11 13:04 rabbitmq
drwxr-xr-x. 4 root root 50 Sep 11 13:04 redis
drwxr-xr-x. 3 root root 35 Sep 11 13:04 santa
drwxr-xr-x. 3 root root 52 Sep 11 13:04 suricata
drwxr-xr-x. 4 root root 50 Sep 11 13:04 system
drwxr-xr-x. 3 root root 38 Sep 11 13:04 traefik
drwxr-xr-x. 8 root root 147 Sep 11 13:04 zeek

```

This happening on multiple CentOS installations. I used the repo ([https://www.elastic.co/guide/en/beats/auditbeat/7.3/setup-repositories.html#\_yum](https://www.elastic.co/guide/en/beats/auditbeat/7.3/setup-repositories.html#_yum)) to install filebeat. I haven't tried using the rpm installation yet.

---

<div class="post-metadata">

**Author:** ![Justin\_Doles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justin_doles/32/40730_2.png) [@Justin\_Doles](https://discuss.elastic.co/u/Justin_Doles)\
**Post date:** [September 11, 2019, 6:38pm UTC](https://discuss.elastic.co/t/module-doesnt-exist-but-it-does/199116/2 "2019-09-11T18:38:05Z")

</div>

If I rename /etc/filebeat/modules.d/elasticsearch.yml.disabled to elasticsearch.yml - the module loads as expected.

I'm still not sure why the filebeat modules enable and filebeat modules list commands don't work.

---

<div class="post-metadata">

**Author:** ![Ryne\_Keel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryne_keel/32/42827_2.png) [@Ryne\_Keel](https://discuss.elastic.co/u/Ryne_Keel)\
**Post date:** [September 11, 2019, 7:24pm UTC](https://discuss.elastic.co/t/module-doesnt-exist-but-it-does/199116/3 "2019-09-11T19:24:30Z")

</div>

> [@Justin\_Doles](#):
>
> sudo /usr/share/filebeat/bin/filebeat modules enable elasticsearch -c /etc/filebeat/filebeat.yml

This doesn't work for me either. If you installed it with yum then you should be able to simply type

```
filebeat modules enable elasticsearch
filebeat modules list

```

---

<div class="post-metadata">

**Author:** ![Justin\_Doles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justin_doles/32/40730_2.png) [@Justin\_Doles](https://discuss.elastic.co/u/Justin_Doles)\
**Post date:** [September 12, 2019, 7:14pm UTC](https://discuss.elastic.co/t/module-doesnt-exist-but-it-does/199116/4 "2019-09-12T19:14:21Z")

</div>

That does work. Odd that I can't call it with the full path.

---

<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 10, 2019, 7:14pm UTC](https://discuss.elastic.co/t/module-doesnt-exist-but-it-does/199116/5 "2019-10-10T19:14:28Z")

</div>

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