在虚拟机解压好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