# APM on docker did not send logs trace to elastic cloud

**URL:** <https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620>\
**Category:** APM\
**Tags:** docker, java\
**Created:** [January 27, 2022, 6:37pm UTC](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620 "2022-01-27T18:37:38Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [February 25, 2022, 12:22pm UTC](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620/21 "2022-02-25T12:22:05Z")

</div>

What is a problem with the java agent, I got this: `ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type JSON_WRITER with this error: Connection refused`  
What should I look at? Can you just direct me the right way?  
Thanks for the help.

---

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [February 25, 2022, 1:56pm UTC](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620/22 "2022-02-25T13:56:14Z")

</div>

This one was from java agent container app `{"ok":{"build_date":"2020-07-09T18:01:36Z","build_sha":"dda44e48cd9c3bac7e5a359a11974594d1d10347","version":"6.8.11"}}root@ccd045e291db`

---

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [February 26, 2022, 10:46am UTC](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620/23 "2022-02-26T10:46:21Z")

</div>

Just one question.  
If I want to get a transaction, services, traces ... from the APM agent, do I need to set up a Fleet in Kibana or not?

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [February 28, 2022, 8:26am UTC](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620/24 "2022-02-28T08:26:54Z")

</div>

No, you don't need Fleet, just to configure the Java agent to send to APM-server.

What fleet integration does in practice is more or less:

- automatically deploy an apm-server running on the host with `http://localhost:8200` endpoint.
- configure this apm-server instance to send data back to ES
- by default apm agents use `http://localhost:8200` to send data, thus any APM agent deployed on a Fleet-managed server will require only minimal configuration

---

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [February 28, 2022, 9:39am UTC](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620/25 "2022-02-28T09:39:17Z")

</div>

Thanks understood.  
When I will finish the setup between the java agent or APM-Server, I will send you a fedbeek.  
Someone has like me issues, maybe.  
Thanks for the help team Elastic. 👍 👏 🤝  
Regards,  
Bekk777

---

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [February 28, 2022, 1:36pm UTC](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620/26 "2022-02-28T13:36:07Z")

</div>

Thank you very much!  
I just setup only one container with a java agent and APM-server together, now is working.

---

<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:** [March 21, 2022, 9:37am UTC](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620/27 "2022-03-21T09:37:07Z")

</div>

Closed on March 21, 2022, 9:37am UTC

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

[Previous page](https://discuss.elastic.co/t/apm-on-docker-did-not-send-logs-trace-to-elastic-cloud/295620.md?page=1)
