首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将filebeat连接到Kibana

将filebeat连接到Kibana
EN

Stack Overflow用户
提问于 2019-03-05 22:01:43
回答 2查看 2.8K关注 0票数 0

我正在尝试在服务器上设置filebeat,然后在Elastic Stack Docker容器设置上运行该设置。但目前,无论我怎么尝试,都没有办法让它正常工作。无论是否使用https,我都会收到以下错误:

代码语言:javascript
复制
2019-03-05T14:58:20.458+0100    ERROR   instance/beat.go:911    Exiting: Failed to import index-pattern: Failed to load directory /usr/share/filebeat/kibana/6/index-pattern:
          error loading /usr/share/filebeat/kibana/6/index-pattern/filebeat.json: fail to execute the HTTP POST request: Post http://10.248.115.125:5601/api/kibana/dashboards/import?force=true: net/http: request canceled (Client.Timeout exceeded while awaiting headers). Response:
        Exiting: Failed to import index-pattern: Failed to load directory /usr/share/filebeat/kibana/6/index-pattern:
          error loading /usr/share/filebeat/kibana/6/index-pattern/filebeat.json: fail to execute the HTTP POST request: Post http://10.248.115.125:5601/api/kibana/dashboards/import?force=true: net/http: request canceled (Client.Timeout exceeded while awaiting headers). Response:

firebeat.yml配置为:

代码语言:javascript
复制
# List of inputs to fetch data.
filebeat.inputs:
- type: log

  paths:
    - "/var/log/nova/*.log"
  document_type: nova

  paths:
    - "/var/log/neutron/*.log"
  document_type: neutron

  paths:
    - "/var/log/messages"
  document_type: syslog

  paths:
    - "/var/log/openvswitch/*.log"
  document_type: openvswitch

  paths:
    - "/var/log/ceilometer/*.log"
  document_type: ceilometer

  paths:
    - "/var/log/libvirt/*.log"
  document_type: libvirt

  # Change to true to enable this input configuration.
  enabled: true

output.elasticsearch:
  hosts: '10.000.000.000:9200'

  # Optional SSL settings
  #ssl.enabled: true
  #ssl.verification_mode: "none"

  protocol: "http"
  #username: "elastic"
  #password: "Nd6nFv8ktCbZMqKgiLsFgQ=="

  #template.name: "filebeat"
  #template.path: "filebeat.template.json"

setup.kibana:
  host: "http://10.000.000.000:5601"
  #username: "elastic"
  #password: "Nd6nFv8ktCbZMqKgiLsFgQ=="
  protocol: "http"
  ssl.enabled: false

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~

filebeat.config.modules:
  # Glob pattern for configuration loading
  path: ${path.config}/modules.d/*.yml

  # Set to true to enable config reloading
  reload.enabled: false

  # Period on which files under path should be checked for changes
  #reload.period: 10s

Kibana在Docker容器中的其他主机上运行Elasticsearch和logstash。

EN

回答 2

Stack Overflow用户

发布于 2019-03-21 21:42:10

我想,当您按照the documentation中的说明更改kibana.host时,您将能够创建仪表板:

代码语言:javascript
复制
setup.kibana:
  host: "10.0.0.0:5601"
  protocol: "http"
  ssl.enabled: false
票数 0
EN

Stack Overflow用户

发布于 2021-07-11 15:18:19

这是用户授权问题。在将数据加载到ES之前,加载Kibana仪表板失败。在aws中将您的安全切换到IP白名单,或者将FB切换到Logstash,然后切换到ES。Reference

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55004582

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档