# Elastic APM server Elastic search connection not able to establish

**URL:** <https://discuss.elastic.co/t/elastic-apm-server-elastic-search-connection-not-able-to-establish/345459>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [October 20, 2023, 12:34pm UTC](https://discuss.elastic.co/t/elastic-apm-server-elastic-search-connection-not-able-to-establish/345459 "2023-10-20T12:34:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajat\_Gupta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajat_gupta1/32/126729_2.png) [@Rajat\_Gupta1](https://discuss.elastic.co/u/Rajat_Gupta1)\
**Post date:** [October 20, 2023, 12:34pm UTC](https://discuss.elastic.co/t/elastic-apm-server-elastic-search-connection-not-able-to-establish/345459/1 "2023-10-20T12:34:21Z")

</div>

Hi All

need Some help with existing elastic stack.I have used official helm charts for deployment of the elastic stack

I have  
apm-server  
Elastic Search  
and Kibana to be deployed

When I try to get health of Elasticsearch

I get

\<curl -k -u elastic elasticsearch-master.prestag-monitoring.svc.cluster.local:9200  
curl: (52) Empty reply from server

when I am trying to run the `apm-server test output` command with http in elastic url , I am getting following

elasticsearch:  
[elasticsearch-master.prestag-monitoring.svc.cluster.local:9200]  
(elasticsearch-master.prestag-monitoring.svc.cluster.local:9200/).  
.. parse url... OK connection...  
parse host... OK  
dns lookup... OK addresses:  
172.20.0.11 dial up... OK TLS...

WARN secure connection disabled talk to server...  
ERROR Get "elasticsearch-master.prestag-monitoring.svc.cluster.local:9200": EOF

when I am trying to run the `apm-server test output` with https:// command , I am getting following

... parse url...  
OK connection...  
parse host...  
OK dns lookup...  
OK addresses: 172.20.0.11  
dial up... OK TLS...

security: server's certificate chain verification is enabled handshake... ERROR x509: certificate signed by unknown authority

when I use curl -k -u elastic elasticsearch-master.prestag-monitoring.svc.cluster.local:9200 it works finebecause of this ,

I guess I am not able to see any apm services on elastic , Please help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 17, 2023, 12:34pm UTC](https://discuss.elastic.co/t/elastic-apm-server-elastic-search-connection-not-able-to-establish/345459/2 "2023-11-17T12:34:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
