1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > 解决启动filebeat时遇到Exiting: error unpacking config data: more than one namespace configured accessing错误

解决启动filebeat时遇到Exiting: error unpacking config data: more than one namespace configured accessing错误

时间:2024-04-09 17:47:23

相关推荐

解决启动filebeat时遇到Exiting: error unpacking config data: more than one namespace configured accessing错误

在虚拟机解压好filebeat后输入#: ./filebeat -c filebeat.yml

遇到如下问题!!!!!!

Exiting: error unpacking config data: more than one namespace configured accessing 'output' (source:'filebeat.yml')

翻译:

退出:解压缩配置数据时出错:访问“输出”时配置了多个命名空间(源:'filebeat.yml')

解决方法:

#注意要在自己安装filebeat目录下才能修改filebeat.yml

[filebeat目录下]#:vim filebeat.yml

进入后找到如下配置位置

#----------------------------Elasticsearch output ----------------------------------

output.elasticsearch:

#Array of hosts to connecr to.

hosts: ["localhost:9200"]

=====================修改====================

把Elasticsearch output下的内容注释掉即可

#----------------------------Elasticsearch output ----------------------------------

#output.elasticsearch:

#Array of hosts to connecr to.

hosts: ["localhost:9200"]

修改完成保存退出

重新启动filebeat

输入#: ./filebeat -c filebeat.yml

查看进程

输入#: ./filebeat -e -c filebeat.yml

成功启动filebeat!!!!!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。