【问题标题】:Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Elasticsearch output is not configured/enabled退出:导入 Kibana 仪表板时出错:无法创建 Elasticsearch 加载程序:未配置/启用 Elasticsearch 输出
【发布时间】:2017-12-27 14:46:20
【问题描述】:

努力让 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')

【问题讨论】:

    标签: elasticsearch logstash filebeat


    【解决方案1】:

    我看不到您的配置,但您似乎为 Filebeat 设置了 2 个不同的输出,此服务只接受一个输出,只需评论另一个输出(例如:output.elasticsearch)。然后再次检查配置文件:

    filebeat -c /etc/filebeat/filebeat.yml
    

    【讨论】:

      猜你喜欢
      • 2021-08-27
      • 2022-12-22
      • 2014-09-29
      • 2021-08-07
      • 2017-12-20
      • 1970-01-01
      • 2016-11-09
      • 1970-01-01
      • 2014-03-30
      相关资源
      最近更新 更多