【问题标题】:elastic apm, turn off ssl verificationelastic apm,关闭ssl验证
【发布时间】:2020-08-11 15:06:22
【问题描述】:

logstash 的 elasticsearch 输出有关闭 SSL 验证的选项

https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-ssl_certificate_verification

apm 有类似的选项吗?

Elasticsearch 使用自签名证书,连接 ES 时 apm 报错。

【问题讨论】:

    标签: elasticsearch elastic-apm


    【解决方案1】:

    所有 Elastic APM 代理(RUM JavaScript 代理除外)都有一个verify_server_cert 配置变量。您可以将其设置为 false 以禁用服务器 TLS 证书验证。

    【讨论】:

    • 对不起,我不清楚,我想要 APM => ES 。 ES 已开启安全性(但使用自签名证书),APM 无法连接到 ES。
    【解决方案2】:

    我正在使用 docker-compose

    并且以下选项不起作用。我认为这是apm的错误.. 当我在 apm-server.yml 中使用相同的选项时,它工作正常。

    environment:
      - output.elasticsearch.protocol=https
      - output.elasticsearch.username=$USERNAME
      - output.elasticsearch.password=$ELASTIC_PASSWORD
      - output.elasticsearch.ssl.verification_mode=none
    

    【讨论】:

    • 这里的问题是 apm-server 不会在环境变量中查找配置。您可以通过带有-E 标志的command 传递配置。例如“-E output.elasticsearch.ssl.verification_mode=none”。有关示例,请参见 github.com/elastic/apm-contrib/blob/master/stack/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-18
    • 2019-09-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多