【问题标题】:Filebeat configuration with Opensearch in Virtualbox在 Virtualbox 中使用 Opensearch 配置 Filebeat
【发布时间】:2021-11-16 23:57:10
【问题描述】:

我已安装 Filebeat 用于转发和集中日志数据。 Filebeat 主要与 Elasticsearch 一起使用(直接发送事务)。我使用 Opensearch 和 OpenSearch Dashboards 而不是 Elasticsearch 和 Kibana(Opensearch 是一个基于旧版本 Elasticsearch 和 Kibana 的分叉搜索项目)。 Filebeat 和 Opensearch 都作为压缩包安装在我的 VirtualBox VDI 上。 我目前使用这个配置文件:(cmets 已删除)

###################### Filebeat Configuration #########################


filebeat.inputs:
ma- type: log
  enabled: false
  paths:
    - /var/log/*.log


filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

setup.template.settings:
  index.number_of_shards: 1
setup.kibana:

  host: "localhost:5601"

output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["localhost:9200"]

  username: "admin"
  password: "admin"

processors:
  
  - decode_json_fields:
      fields: ["message"]
      overwrite_keys: true
      target: ""

但是,仍然无法运行 ./filebeat setup -e 并得到错误:

2021-09-23T17:55:11.865+0300    ERROR   instance/beat.go:989    Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://localhost:9200: Get "http://localhost:9200": dial tcp 127.0.0.1:9200: connect: connection refused]
Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://localhost:9200: Get "http://localhost:9200": dial tcp 127.0.0.1:9200: connect: connection refused]

我使用的是 opensearch-1.0.1 版本,并且能够毫无问题地运行 Opensearch。但是有人可以启发我,如果两者都安装为 tarball,如何连接 Filebeat 和 Opensearch?

谢谢!

【问题讨论】:

    标签: logging networking monitoring filebeat opensearch


    【解决方案1】:

    您可以尝试评论用户名和密码。如果您在本地使用 elasticsearch。

    【讨论】:

      猜你喜欢
      • 2023-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-20
      • 1970-01-01
      • 2022-11-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多