I'm facing error while connecting apm to Elasticsearch.
apm-server test output
elasticsearch: http://localhost:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 127.0.0.1, ::1
dial up... OK
TLS... WARN secure connection disabled
talk to server... ERROR Get "http://localhost:9200": EOF
This post does not contain any details necessary to offer guidance. Please add information about your installation method (native OS, docker, ..), the apm-server version, the configuration, whether you checked that the Elasticsearch endpoint is generally reachable from the host/container where apm-server is running, etc.
Please share the apm-server.yml (remove any sensitive information from the config file before sharing) and check the apm-server logs if they contain any errors or warnings.
But when i run below command its clear says its not connected to Elastic search.
[ec2-user@ip-10-0-11-109 apm-server-8.4.3-linux-x86_64]$ sudo /home/ec2-user/ELK/apm-server-8.4.3-linux-x86_64/apm-server test output
elasticsearch: http://localhost:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 127.0.0.1, ::1
dial up... OK
TLS... WARN secure connection disabled talk to server... ERROR Get "http://localhost:9200": EOF
For diagnosing the problem we need some log output of what is happening. The only error that you shared so far was related to APM Integration, and you already mentioned that you double checked that the integration is installed. (If setup is correct, you should not see this error being logged in the future).
The next possible way of investigating this is to generate some load against the server and see if it logs any further error detail when trying to send the data to ES.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.