【问题标题】:configure of filebeat to elasticsearch将filebeat配置为elasticsearch
【发布时间】:2022-11-09 09:58:47
【问题描述】:

无法打开 config/certs/http_ca.crt 进行阅读,没有这样的文件或目录 139762353411904:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen('config/certs/http_ca.crt','r') 139762353411904:错误:2006D080:BIO 例程:BIO_new_file:没有这样的文件:crypto/bio/bss_file.c:76: 无法加载证书 遇到这个问题有人帮我解决这个问题吗

https://www.elastic.co/guide/en/elasticsearch/reference/8.0/configuring-stack-security.html#_connect_clients_to_elasticsearch_5 ..... 按照此文档将 Elasticsearch 连接到 filebeat

$ sudo openssl x509 -fingerprint -sha256 -in config/certs/http_ca.crt

【问题讨论】:

    标签: elk


    【解决方案1】:

    除了指纹,您还可以使用 CA 证书(文档中的第二个选项)在 Filebeat 和 Elasticsearch 之间建立 SSL。 在您的 filebeat.yml 中尝试以下设置以进行 ES 连接。注意:如果您想禁用 SSL,可以添加“ssl.verification_mode: none”行

    output.elasticsearch:
      hosts: ["https://localhost:9200"]
      username: "elastic"
      password: "xxxxxxxxxxxxxxxxxxxxxx"
      ssl.certificate_authorities: "/etc/elasticsearch/certs/http_ca.crt"
      index: "myindex"
      pipeline: "mypipeline"
    

    【讨论】:

      猜你喜欢
      • 2019-10-08
      • 2018-12-20
      • 1970-01-01
      • 1970-01-01
      • 2017-10-18
      • 2019-06-28
      • 2018-10-10
      • 1970-01-01
      • 2018-08-24
      相关资源
      最近更新 更多