title: APM Java Agent Data received was not shown in in Agent Status of APM in Kibana
body: <p>I have ELK running in a ec2 instance and installed the apm-server in it</p>
  <p>APM-server version: 7.x</p>
  <p>I have a springboot application with npm for load testing in other ec2 instance
  Also installed the apm agent in it</p>
  <p>APM Agent version: 1.x</p>
  <p>In APMserver.yml:</p>
  <p>I have given the private ip for hosts and outputs</p>
  <p>Now from springboot server when I tried to connect with apm-server using curl <a href="http://xxxx.8200" rel="nofollow noreferrer">http://xxxx.8200</a> it connects</p>
  <p><strong>Command to start app:</strong></p>
  <pre><code>java -javaagent:elastic-apm-agent-1.22.0.jar --config service_name=my-cool-service server_url=http://private(or)publicip:8200 -jar order-service/target/order-service-1.0-SNAPSHOT.jar
  </code></pre>
  <p><strong>Output:</strong></p>
  <pre><code>2021-03-27 04:45:59,879 [main] INFO  co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.22.0 as my-cool-service on Java 11.0.10 Runtime version: 11.0.10+9-Ubuntu-0ubuntu1.18.04 VM version: 11.0.10+9-Ubuntu-0ubuntu1.18.04 (Ubuntu) Linux 4.15.0-1051-aws
  2021-03-27 04:45:59,880 [main] INFO  co.elastic.apm.agent.configuration.StartupInfo - VM Arguments: [-javaagent:elastic-apm-agent-1.22.0.jar, -Delastic.apm.service_name=my-cool-service, -Delastic.apm.application_packages=org.example,org.another.example, -Delastic.apm.server_url=http://x.x.x.x:8200]
  2021-03-27 04:46:03,041 [elastic-apm-server-healthcheck] INFO  co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: {  &quot;build_date&quot;: &quot;2021-03-18T05:15:57Z&quot;,  &quot;build_sha&quot;: &quot;ef735c0cc1e5aa0d4fe4a363804390776e7775fe&quot;,  &quot;version&quot;: &quot;7.12.0&quot;}
  2021-03-27 04:46:03,063 [main] INFO  co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
  2021-03-27 04:46:03,074 [elastic-apm-remote-config-poller] INFO  co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Received new configuration from APM Server: {}
  </code></pre>
  <p><strong>Curl output:</strong></p>
  <pre><code>{
    &quot;build_date&quot;: &quot;2021-03-18T05:15:57Z&quot;,
    &quot;build_sha&quot;: &quot;ef735c0cc1e5aa0d4fe4a363804390776e7775fe&quot;,
    &quot;version&quot;: &quot;7.12.0&quot;
  }
  </code></pre>
  <p><strong>Kibana.log</strong></p>
  <p>There are no errors but below message</p>
  <pre><code>{&quot;type&quot;:&quot;log&quot;,&quot;@timestamp&quot;:&quot;2021-03-27T04:27:58+00:00&quot;,&quot;tags&quot;:[&quot;info&quot;,&quot;plugins&quot;,&quot;apm&quot;],&quot;pid&quot;:1627,&quot;message&quot;:&quot;Config was not found for my-cool-service/undefined&quot;}
  </code></pre>
  <p><strong>When I check agent status</strong></p>
  <p>No data has been received from agents yet</p>