I'm trying to get system logs from an Ubuntu VM running the latest version of filebeats (installed via apt-get). When I run sudo ./filebeat modules enable system, I get an error "Module system doesn't exists!".
If I run sudo ./filebeat modules list, I get blank outputs for Enabled and Disabled.
I can't attach the full output since it won't let me attach a txt file and it's too long to paste into a reply.
Here are the bits that seem relevant to modules for system. There are a number of others related to modules as well.
Everything seems in place, I would say something on this list should be the issue:
You are running sudo filebeat... from /usr/share/filbeat folder, no need for it, depending on your PATH settings it may be using the wrong binary, just run the command from your home, for instance.
filebeat.config.modules.path is wrong, did you change by a chance? You can dump your settings doing filebeat export config.
Running from my home directory doesn't have any impact and I get the same results. The modules path may be the root cause here because I believe I likely changed it due to errors before (likely because I was running it incorrectly).
Here's the config output
filebeat:
config:
modules:
path: /usr/share/filebeat/modules/*.yml
reload:
enabled: true
prospectors:
I think you found the root cause :), modules section should look like this:
#============================= Filebeat modules ===============================
filebeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
# Set to true to enable config reloading
reload.enabled: false
# Period on which files under path should be checked for changes
#reload.period: 10s
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.