APM agent for java is not working : Response code 410


I have created a new elastic cloud deployment with version 7.8.1. And i have downloaded apm server with version 1.170.
I added the apm parameters to my Java application.But the logs are not being sent.
I get the following errors

2020-08-20 06:55:51.144 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 36 seconds (+/-10%)
2020-08-20 06:56:29.513 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error sending data to APM server: https://4a6ae8b5a758459ab79f00ecbbda5468.apm.eu-west-1.aws.cloud.es.io:443/intake/v2/events, response code is 410
2020-08-20 06:56:29.513 [elastic-apm-server-reporter] WARN co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - {"ok":false,"message":"Deleted resource."}

The APM url is active and running.
APM server url - https://e5addd4da1e744a7a7e71b77c7194a80.apm.eu-west-1.aws.cloud.es.io:443

It looks like your agent is using a different APM Server URL. The URL in the log message


does not match the one you pasted at the end


I suspect the 410 status is being returned because the agent is connecting to an APM Server from a deleted cloud deployment.

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