# Java APM Agent not sending data

**URL:** https://discuss.elastic.co/t/java-apm-agent-not-sending-data/147116
**Category:** APM
**Created:** [September 3, 2018, 8:38pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data/147116 "2018-09-03T20:38:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Federico\_Resnizky](https://avatars.discourse-cdn.com/v4/letter/f/8491ac/32.png) [@Federico\_Resnizky](https://discuss.elastic.co/u/Federico_Resnizky)
#### Post date: [September 3, 2018, 8:38pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data/147116/1 "2018-09-03T20:38:11Z")

</div>

Hi, I'm trying to setup an APM Agent for a Java application using Spring Boot 2

I installed on my local machine, the ELK stack, APM Server, configured the javaagent to run on gradle bootrun and added the APM indexes to kibana.yml.

The APM server and agent respond correctly from the Kibana setup instructions, but I don't get any data in the Dashboard.

Could anyone help me to find out what is failing?

Thanks

---

<div class="post-metadata">

### Author: ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)
#### Post date: [September 3, 2018, 8:51pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data/147116/2 "2018-09-03T20:51:29Z")

</div>

Hi and thanks for trying out Elastic APM! Could you please attach the full agent and server logs?

Have you configured the service\_name in the agent?

---

<div class="post-metadata">

### Author: ![Federico\_Resnizky](https://avatars.discourse-cdn.com/v4/letter/f/8491ac/32.png) [@Federico\_Resnizky](https://discuss.elastic.co/u/Federico_Resnizky)
#### Post date: [September 4, 2018, 1:04pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data/147116/3 "2018-09-04T13:04:40Z")

</div>

I checked the logs and got this: 2018-09-04 09:43:10.783 [main] WARN co.elastic.apm.impl.ElasticApmTracerBuilder - Missing required value for configuration option service\_name

I tried passing the parameter using the command line with -D and -P flag but was ignored, and when I added in build.gradle I got Could not get unknown property 'elastic' for task ':bootRun' of type org.springframework.boot.gradle.tasks.run.BootRun

Sorry but Java is not my main language.

Thanks

---

<div class="post-metadata">

### Author: ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)
#### Post date: [September 5, 2018, 5:45am UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data/147116/4 "2018-09-05T05:45:28Z")

</div>

You can configure the agent in different ways. See [documentation](https://www.elastic.co/guide/en/apm/agent/java/current/configuration.html). When using system properties, you have to prefix the properties with `elastic.apm`, like `-Delastic.apm.service_name=my-service`.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 26, 2018, 1:45am UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data/147116/5 "2018-09-26T01:45:28Z")

</div>

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