APM Server unable to get data from my servlet based application

Hello,
I have installed elasticsearch and kibana of version 7.0.0 and then attached apm server of version 7.5.0. I have a servlet based application running on tomcat server on windows According to this document, https://www.elastic.co/guide/en/apm/agent/java/1.x/setup-javaagent.html#setup-tomcat-windows
I have created a file setenv.bat file in bin tomcat folder. The application is running fine but I can't able to get data from apm agent to my apm server.
Here I wanted to know what is service name and application packages need to be given and where can I find these values from my application and where I need to put file, setenv.bat.

Please kindly help me in this issue.

Hi,
In application_packages you can set root package of your application config .
In service_name you can set any value according to config-service-name.
In addition I recommend setting log_level to DEBUG (ref)
export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.log_level=DEBUG"

Hello,
Thanks for the quick reply.
Actually I don't have much idea about the application.I haven't build this application. To test APM, I have downloaded from internet.
Can I know the root package of application from web.xml file or from any other file?
And about service _name, the name can be any custom name....that no need to be related to my application?

Can you give url of your downloaded project?

Yes.

Hello,

Can we have a quick call on this please? We wanted to show how this is running.
Thank you.

you can get root package from src dir of your downloaded project.
For example, com.example .

Hi,
We have found the root package and created files elasticapm.properties and setenv.bat as follows.
elasticapm.properties
service_name=my-cool-service
application_packages=com.smartbear
server_urls=http://10.169.152.250:8200
log_level=DEBUG
log_file=D:/Smartbear/collaborator_svr/tomcat/logs/apm.log

setenv.bat
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:D:/Smartbear/collaborator_svr/tomcat/bin/elastic-apm-agent-1.12.0.jar

and added javaagent flag as follows

java -javaagent:D:/Smartbear/collaborator_svr/tomcat/bin/elastic-apm-agent-1.12.0.jar

However am not getting any data to my apm server.

Note: Apm-server is running on centos machine and application is running on a remote windows machine.

Please find logs .

2019-12-30 11:12:00.001 [apm-server-healthcheck] DEBUG co.elastic.apm.agent.report.ApmServerHealthChecker - Starting healthcheck to http://10.169.152.250:8200/
2019-12-30 11:12:00.048 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - container ID is null
2019-12-30 11:12:00.097 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.12.0 as my-cool-service on Java 1.8.0_40 (Oracle Corporation) Windows Server 2012 R2 6.3
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - service_name: 'my-cool-service' (source: D:\Smartbear\collaborator_svr\tomcat\bin/elasticapm.properties)
2019-12-30 11:12:00.097 [apm-remote-config-poller] DEBUG co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Reloading configuration from APM Server http://10.169.152.250:8200/config/v1/agents
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - server_urls: 'http://10.169.152.250:8200' (source: D:\Smartbear\collaborator_svr\tomcat\bin/elasticapm.properties)
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - application_packages: 'com.smartbear' (source: D:\Smartbear\collaborator_svr\tomcat\bin/elasticapm.properties)
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - log_level: 'DEBUG' (source: D:\Smartbear\collaborator_svr\tomcat\bin/elasticapm.properties)
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - log_file: 'D:/Smartbear/collaborator_svr/tomcat/logs/apm.log' (source: D:\Smartbear\collaborator_svr\tomcat\bin/elasticapm.properties)
2019-12-30 11:12:00.189 [main] DEBUG co.elastic.apm.agent.jmx.JmxMetricTracker - Deferring initialization of JMX metric tracking until capture_jmx_metrics is set.
2019-12-30 11:12:00.267 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.ApacheHttpClientInstrumentation
2019-12-30 11:12:00.267 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.apache.http.impl.execchain.ClientExecChain was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.267 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.ApacheHttpAsyncClientInstrumentation
2019-12-30 11:12:00.267 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.apache.http.nio.client.HttpAsyncClient was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.ApacheHttpAsyncClientRedirectInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.LegacyApacheHttpClientInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$StartTransactionInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$StartTransactionWithRemoteParentInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$CurrentTransactionInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$CurrentSpanInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$CaptureExceptionInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TransactionInstrumentation$SetUserInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TransactionInstrumentation$EnsureParentIdInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TransactionInstrumentation$SetResultInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TransactionInstrumentation$AddCustomContextInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$SetNameInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$SetTypeInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$SetTypesInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$DoCreateSpanInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$SetStartTimestampInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$EndInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$EndWithTimestampInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$CaptureExceptionInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$GetIdInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$GetTraceIdInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$AddStringLabelInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$AddNumberLabelInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$AddBooleanLabelInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$ActivateInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$IsSampledInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$InjectTraceHeadersInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.CaptureExceptionInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ApiScopeInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.CaptureTransactionInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - co.elastic.apm.api.CaptureTransaction was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.CaptureSpanInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - co.elastic.apm.api.CaptureSpan was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TracedInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - co.elastic.apm.api.Traced was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$SetNameInstrumentation

2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$SetNameInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$SetTypeInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$DoCreateSpanInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$EndInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$CaptureExceptionInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$GetIdInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$GetTraceIdInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$AddTagInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$ActivateInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$IsSampledInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.asynchttpclient.AbstractAsyncHttpClientInstrumentation$AsyncHttpClientInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.asynchttpclient.AsyncHandler was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.asynchttpclient.AbstractAsyncHttpClientInstrumentation$AsyncHandlerOnCompletedInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.asynchttpclient.AsyncHandler was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.asynchttpclient.AbstractAsyncHttpClientInstrumentation$AsyncHandlerOnThrowableInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.asynchttpclient.AsyncHandler was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.asynchttpclient.AbstractAsyncHttpClientInstrumentation$AsyncHandlerOnStatusReceivedInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.asynchttpclient.AsyncHandler was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.error.logging.Slf4jLoggingInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.concurrent.ExecutorInstrumentation$ExecutorRunnableInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.concurrent.ExecutorInstrumentation$ExecutorCallableInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jaxrs.JaxRsTransactionNameInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - javax.ws.rs.Path was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jaxws.JaxWsTransactionNameInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - javax.jws.WebService was loaded by Bootstrap ClassLoader from jar:file:/D:/Java/jre1.8.0_40/lib/rt.jar!/javax/jws/WebService.class
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.ConnectionInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecuteWithQueryInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecuteUpdateWithQueryInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecuteUpdateNoQueryInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$AddBatchInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecuteBatchInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecutePreparedStatementInstrumentation
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.redis.jedis.JedisInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.redis.jedis.JedisSpanNameInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jsf.JsfLifecycleInstrumentation$JsfLifecycleExecuteInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - javax.faces.lifecycle.Lifecycle was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jsf.JsfLifecycleInstrumentation$JsfLifecycleRenderInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - javax.faces.lifecycle.Lifecycle was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.hibernate.search.v5_x.HibernateSearch5Instrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.hibernate.search.FullTextQuery was loaded by Bootstrap ClassLoader
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.es.restclient.v5_6.ElasticsearchClientSyncInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.es.restclient.v5_6.ElasticsearchClientAsyncInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.es.restclient.v6_4.ElasticsearchClientSyncInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.es.restclient.v6_4.ElasticsearchClientAsyncInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.mongoclient.ConnectionCommandInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.mongoclient.ConnectionInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.mule4.Mule4OverrideClassLoaderLookupInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.okhttp.OkHttpClientInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.okhttp.OkHttp3ClientInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.okhttp.OkHttpClientAsyncInstrumentation
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.okhttp.OkHttp3ClientAsyncInstrumentation

Hi, Did you try to request some url of your application?

Hi :wave:

all configuration options besides server_urls are optional. To me, it seems the url might not be valid/reachable.

As you can see in https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html#trouble-shooting-logging, it's expected to see a log line similar to this one in the logs:

[apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: {"build_date":"2018-11-05T07:58:08Z","build_sha":"dffb98a72a262ca22adad0152f0245ea743ea904","version":"7.0.0-alpha1"}

Could you please upload your complete your complete log file? See also https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html