将filebeat的日志发送到Kibana时出错?

eulz3vhy  于 2022-12-09  发布在  Kibana
关注(0)|答案(1)|浏览(283)

我配置为通过HTTPS从浏览器访问它,当我配置filebeat时,我让kibana默认使用http

# =================================== Kibana ===================================

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:

  # Kibana Host
  # Scheme and port can be left out and will be set to the default (http and 5601)
  # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  host: "192.168.37.2:5601"

  # Kibana Space ID
  # ID of the Kibana Space into which the dashboards should be loaded. By default,
  # the Default Space will be used.
  #space.id:
and when i try this cmd "filebeat setup -e" it show me this error :
Loading dashboards (Kibana must be running and reachable)
{"log.level":"info","@timestamp":"2022-07-25T12:29:00.713Z","log.logger":"kibana",                                                                                      "log.origin":{"file.name":"kibana/client.go","file.line":179},"message":"Kibana ur                                                                                      l: http://192.168.37.2:5601","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-07-25T12:29:00.716Z","log.origin":{"file.n                                                                                      ame":"instance/beat.go","file.line":1051},"message":"Exiting: error connecting to                                                                                       Kibana: fail to get the Kibana version: HTTP GET request to http://192.168.37.2:56                                                                                      01/api/status fails: fail to execute the HTTP GET request: Get \"http://192.168.37                                                                                      .2:5601/api/status\": EOF. Response: ","service.name":"filebeat","ecs.version":"1.                                                                                      6.0"}
j7dteeu8

j7dteeu81#

我配置为通过HTTPS从浏览器访问它,当我配置filebeat时,我让kibana默认为http

========================================================================================================================================================================================================================================================

===================================

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:

  # Kibana Host
  # Scheme and port can be left out and will be set to the default (http and 5601)
  # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  host: "192.168.37.2:5601"

  # Kibana Space ID
  # ID of the Kibana Space into which the dashboards should be loaded. By default,
  # the Default Space will be used.

当我尝试这个命令"filebeat setup-e"时,它显示这个错误:
Loading dashboards (Kibana must be running and reachable) {"log.level":"info","@timestamp":"2022-07-25T12:29:00.713Z","log.logger":"kibana", "log.origin":{"file.name":"kibana/client.go","file.line":179},"message":"Kibana ur
"日志文件名":"示例/节拍. go","文件行":1051},"消息":"正在退出:连接到时出错
Kibana:无法获取Kibana版本:对http://192.168.37.2:56的HTTP GET请求
01/api/状态失败:无法执行HTTP GET请求:获取"
.2:5601/api/status": EOF. Response: ","service.name":"filebeat","ecs.version":"1.
6.0英寸}

相关问题