Error talk to server

Hi Team,

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

Thanks

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.

1 Like

Hi Simitt,

Installation on AWS EC2 RHEL.
APM version 8.4.3
Elastic Search version 8.4.0 (Its reachable and working with Kibana already)

All service is running on same EC2 instance.

and i also tried with elastic user and new user (apm) alll give same error.

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.

image

{"log.level":"error","@timestamp":"2023-03-21T13:05:44.238Z","log.logger":"beater","log.origin":{"file.name":"beater/waitready.go","file.line":64},"message":"precondition failed: EOF","service.name":"apm-server","ecs.version":"1.6.0"}

You need to install the APM Integration for the apm-server to be able to send data to Elasticsearch output.

It was already done .

The error you shared is suggesting that the integration is not yet installed.

I suggest you start sending apm events to the apm server and share if there are any errors logged.

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.

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