Kibana version: 7.15.2
Elasticsearch version: 7.16.3
APM Server version: 7.16.3
APM Agent language and version: Java 11, agent version: 1.28.4
Browser version: Google chrome 97.0.4692.99
**Description: I am trying to instrument my Java web application running on tomcat which deployed in docker container, I installed APM server, Elasticsearch and Kibana in docker. I configured Java application using following properties:
-javaagent:/usr/local/app/bin/elastic-apm-agent-1.28.4.jar -Delastic.apm.service_name=my-application -Delastic.apm.server_url=http://localhost:8200
It seems that, traces is running and application is able to communicate with APM server:
server_url: 'http://192.168.1.3:8200' (source: Java System Properties)
2022-01-29 16:00:14,092 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - application_packages: 'com.santaba.reporting.dataengine.alertthresholdv3' (source: Java System Properties)
2022-01-29 16:00:16,086 [main] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
2022-01-29 16:00:16,118 [elastic-apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: { "build_date": "2022-01-06T23:13:12Z", "build_sha": "fde0af4fa2b9f39e518b333c5be56cf8be215ca0", "publish_ready": true, "version": "7.16.3"}
But in Kibana APM agent is not in active state
Logs from APM server:
{"log.level":"info","@timestamp":"2022-01-29T22:06:33.901+0530","log.logger":"request","log.origin":{"file.name":"middleware/log_middleware.go","file.line":63},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.28.4 (my-application)","source.address":"192.168.1.3","http.request.body.bytes":513,"http.request.id":"e2e7a34f-f2f7-47f4-9864-d5813a4ee6f5","event.duration":18301071,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-01-29T22:06:43.509+0530","log.logger":"request","log.origin":{"file.name":"middleware/log_middleware.go","file.line":63},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.28.4 (my-application)","source.address":"192.168.1.3","http.request.id":"4536dbfe-4c77-4094-8acf-b7453f9e9ba3","event.duration":9998567640,"http.response.status_code":202,"ecs.version":"1.6.0"}