努力让filebeat正常工作。
根据文档(https://www.elastic.co/guide/en/beats/filebeat/6.1/load-kibana-dashboards.html),需要加载仪表板。
所以,在/etc/filebeat/filebeat.yml
setup.dashboards.enabled: true
但现在我明白了:
beat.go:625: CRIT Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Elasticsearch output is not configured/enabled
Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Elasticsearch output is not configured/enabled
我的印象是Logstash输出是所有需要的,而Logstash负责输出到Elasticsearch。
但是,如果我在filebeat(/etc/filebeat/filebeat.yml
)中启用Elasticsearch输出:
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["localhost:9200"]
我明白了:
beat.go:625: CRIT Exiting: error unpacking config data: more then one namespace configured accessing 'output' (source:'/etc/filebeat/filebeat.yml')
Exiting: error unpacking config data: more then one namespace configured accessing 'output' (source:'/etc/filebeat/filebeat.yml')
答案 0 :(得分:0)
我看不到您的配置,但似乎您为Filebeat设置了2个不同的输出,此服务仅接受一个输出,仅对另一个输出进行注释(例如:output.elasticsearch)。然后再次检查配置文件:
filebeat -c /etc/filebeat/filebeat.yml