【问题标题】:ERROR x509: certificate signed by unknown authority in Metricbeat错误 x509:证书由 Metricbeat 中的未知机构签署
【发布时间】:2023-01-09 19:47:42
【问题描述】:

我试着通过Metricbeats 值到 elasticsearch 集群.在检查测试输出时我遇到了这个错误。任何人都知道如何解决这个问题。

Output

【问题讨论】:

    标签: elasticsearch elastic-stack metricbeat


    【解决方案1】:

    这对我来说很好:

    metricbeat.yml

       setup.kibana:   
         host: "hostname:5601"
    
       
       # ---------------------------- Elasticsearch Output ----------------------------
       output.elasticsearch:
         # Array of hosts to connect to:
         hosts: ["https://hostname:9200"]   
         protocol: "https"
      
         username: "elastic"
         password: "your-password"
       
         ssl.certificate_authorities: ["/path/to/elasticsearch/certs/certificate.pem"]
    

    相应地调整你的hostnames和ports。

    希望这有所帮助。

    【讨论】:

      猜你喜欢
      • 2017-12-23
      • 2020-05-27
      • 2019-10-29
      • 1970-01-01
      • 1970-01-01
      • 2019-03-07
      • 2020-07-23
      • 2019-10-02
      • 2021-01-29
      相关资源
      最近更新 更多