Modules.go Filebeat 5.6 - CentOS

Error in loading the modules.
Filebeat 5.6 + CentOS

----error context-----

2017/11/30 09:21:42.132800 beat.go:297: INFO Home path: [/usr/share/filebeat/bin] Config path: [/etc/filebeat] Data path: [/usr/share/filebeat/bin/data] Logs path: [/usr/share/filebeat/bin/logs]
2017/11/30 09:21:42.132838 beat.go:192: INFO Setup Beat: filebeat; Version: 5.6.3
2017/11/30 09:21:42.132957 metrics.go:23: INFO Metrics logging every 30s
2017/11/30 09:21:42.133333 logstash.go:90: INFO Max Retries set to: 3
2017/11/30 09:21:42.133412 outputs.go:108: INFO Activated logstash as output plugin.
2017/11/30 09:21:42.133516 publish.go:300: INFO Publisher name: elastic01.intra.realstuff.ch
2017/11/30 09:21:42.133725 async.go:63: INFO Flush Interval set to: 1s
2017/11/30 09:21:42.133739 async.go:64: INFO Max Bulk Size set to: 2048
2017/11/30 09:21:42.133861 modules.go:95: ERR Not loading modules. Module directory not found: /usr/share/filebeat/bin/module

-------end of error------

modules.go is looking in the wrong directory, as the modules are located elsewhere.
How to solve it in a correct way?

thanks in advance
Lara

Hi @lara,

I'm wondering, how did you install Filebeat, and how are you running it? Looks like home path is wrong there, it should be /usr/share/filebeat/

Best regards

Hi Carlos,

standard "yum" installation for what I think.
I know that home path should be /usr/share/filebeat/ and the "modules" are right there.

thanks in advance for any hint
Lara

uhm, how do you launch filebeat? RPM packaging includes a wrapper script that we put in the PATH (/usr/bin/filebeat), it configures the proper paths for everything. So everything should work by default if you just run filebeat in a terminal.

As I am in testing phase I launch and stop manually in the following way:

/usr/share/filebeat/bin/filebeat -c filebeat.yml -path.config /etc/filebeat -e

thanks
Lara

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