# Does java agent also ships logs or do i need to ship it separately

**URL:** <https://discuss.elastic.co/t/does-java-agent-also-ships-logs-or-do-i-need-to-ship-it-separately/173552>\
**Category:** APM\
**Created:** [March 22, 2019, 7:11pm UTC](https://discuss.elastic.co/t/does-java-agent-also-ships-logs-or-do-i-need-to-ship-it-separately/173552 "2019-03-22T19:11:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabareesh1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sabareesh1/32/42619_2.png) [@sabareesh1](https://discuss.elastic.co/u/sabareesh1)\
**Post date:** [March 22, 2019, 7:11pm UTC](https://discuss.elastic.co/t/does-java-agent-also-ships-logs-or-do-i-need-to-ship-it-separately/173552/1 "2019-03-22T19:11:21Z")

</div>

We are now using java agent for apm but does it also ship all the logs or do we have to ship it in a separate process

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [March 24, 2019, 2:44am UTC](https://discuss.elastic.co/t/does-java-agent-also-ships-logs-or-do-i-need-to-ship-it-separately/173552/2 "2019-03-24T02:44:53Z")

</div>

Hi @sabareesh1, welcome to the Discuss forum!

Elastic APM agents are not designed for log shipping. Please take a look at [Filebeat](https://www.elastic.co/products/beats/filebeat) for that.

If you use SLF4J for logging in your application, then you may be able to use [https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html#config-enable-log-correlation](https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html#config-enable-log-correlation) to correlate logs with the traces recorded by the APM agent.

---

<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:** [April 13, 2019, 10:45pm UTC](https://discuss.elastic.co/t/does-java-agent-also-ships-logs-or-do-i-need-to-ship-it-separately/173552/3 "2019-04-13T22:45:00Z")

</div>

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