在虚拟机解压好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!!!!!
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。 |