Elastic filebeat 6.5.1错误:无法读取进程cgroups



我想在我的网络服务器上安装filebeat,以便将apache日志发送到托管的ELK。

我听从了指示。

filebeat与ELK云完美连接。然而,在本地我无法通过这个错误:

[someone@web555 filebeat-6.5.1-linux-x86_64]$ ./filebeat setup
Exiting: error initializing publisher: error initializing processors: 1 error: failed to read process cgroups: open /proc/1/cgroup: no such file or directory

实际上,没有/proc/1/cgroup,只有/proc/cgroups文件(请注意,这是一个共享服务器(。

我试图找到一种禁用cgroups的方法,但没有成功。

[someone@web555 filebeat-6.5.1-linux-x86_64]$ ./filebeat test output
elasticsearch: https://someoneat.europe-west3.gcp.cloud.es.io:443...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: xx.xxx.xxx.xxx
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... OK
TLS version: TLSv1.2
dial up... OK
talk to server... OK
version: 6.5.1

[someone@web555 filebeat-6.5.1-linux-x86_64]$ ./filebeat test config
Exiting: error initializing publisher: error initializing processors: 1 error: failed to read process cgroups: open /proc/1/cgroup: no such file or directory

任何提示都将不胜感激(免费试用将在14天后到期:D(

Post-Scriptum

只有apache2模块被启用,我认为禁用系统会跳过这个cgroups检查。

[someone@web555 filebeat-6.5.1-linux-x86_64]$ ./filebeat modules list
Enabled:
apache2
Disabled:
auditd
elasticsearch
haproxy
icinga
iis
kafka
kibana
logstash
mongodb
mysql
nginx
osquery
postgresql
redis
suricata
system
traefik

感谢Jamie Soriano:的评论

是否使用add_host_metadata处理器?尝试禁用它,问题似乎是初始化处理器。

事实上,在filebeat.yml中,我对处理器条目进行了注释(请注意,这是默认启用的(。

#================================ Procesors =====================================
# Configure processors to enhance or manipulate events generated by the beat.
processors:
#  - add_host_metadata: ~
#  - add_cloud_metadata: ~

现在,如果我测试配置,一切都正常:

[someone@web555 filebeat-6.5.1-linux-x86_64]$ ./filebeat test config
Config OK

我不喜欢跳过主机元数据,但我至少可以继续发送apache2日志!

最新更新