0
votes

logstash 's elasticsearch output has option to turn off SSL verification

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

Is there a similar option for apm?

Elasticsearch is using self signed certificate, and apm is complaining when connecting to ES.

2

2 Answers

0
votes

All of the Elastic APM agents, with the exception of the RUM JavaScript agent, have a verify_server_cert configuration variable. You can set this to false to disable server TLS certificate verification.

0
votes

I am using docker-compose

and the following option doesn't work. I think its a bug for apm.. When I use same option in apm-server.yml it works fine.

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