# Filebeat 6.2.2 Cannot find nginx module

**URL:** <https://discuss.elastic.co/t/filebeat-6-2-2-cannot-find-nginx-module/122053>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 1, 2018, 12:29pm UTC](https://discuss.elastic.co/t/filebeat-6-2-2-cannot-find-nginx-module/122053 "2018-03-01T12:29:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![samiujan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samiujan/32/23605_2.png) [@samiujan](https://discuss.elastic.co/u/samiujan)\
**Post date:** [March 1, 2018, 12:29pm UTC](https://discuss.elastic.co/t/filebeat-6-2-2-cannot-find-nginx-module/122053/1 "2018-03-01T12:29:10Z")

</div>

Hi

I cannot load the nginx module in using /usr/share/filebeat/bin/filebeat

/usr/share/filebeat/bin/filebeat version  
filebeat version 6.2.2 (amd64), libbeat 6.2.2

/etc/filebeat# /usr/share/filebeat/bin/filebeat modules enable nginx  
Module nginx doesn't exists!

But this works:

/usr/bin/filebeat modules enable nginx  
Enabled nginx

---

<div class="post-metadata">

**Author:** ![Wanderer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wanderer/32/55140_2.png) [@Wanderer](https://discuss.elastic.co/u/Wanderer)\
**Post date:** [March 1, 2018, 12:58pm UTC](https://discuss.elastic.co/t/filebeat-6-2-2-cannot-find-nginx-module/122053/2 "2018-03-01T12:58:03Z")

</div>

I've noticed the same problem on a fresh install when trying to enable the system module.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 4, 2018, 5:37am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-cannot-find-nginx-module/122053/3 "2018-03-04T05:37:42Z")

</div>

I assume the problem is related to the paths which are set. How did you install filebeat?

---

<div class="post-metadata">

**Author:** ![samiujan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samiujan/32/23605_2.png) [@samiujan](https://discuss.elastic.co/u/samiujan)\
**Post date:** [March 4, 2018, 7:55am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-cannot-find-nginx-module/122053/4 "2018-03-04T07:55:37Z")

</div>

I used the repository guide, and used apt-get

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 12, 2018, 6:39am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-cannot-find-nginx-module/122053/5 "2018-03-12T06:39:01Z")

</div>

If you have a look at `/usr/bin/filebeat` you will see it sets all the correct paths:

```auto
#!/usr/bin/env bash

# Script to run filebeat in foreground with the same path settings that
# the init script / systemd unit file would do.

exec /usr/share/filebeat/bin/filebeat \
  -path.home /usr/share/filebeat \
  -path.config /etc/filebeat \
  -path.data /var/lib/filebeat \
  -path.logs /var/log/filebeat \
  "$@"

```

So in case you want to call the binary directly, you also have to set paths manually as otherwise it falls back to the default paths which are relative to your current directory.

---

<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:** [April 9, 2018, 6:39am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-cannot-find-nginx-module/122053/6 "2018-04-09T06:39:21Z")

</div>

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