# How to capture the Logj4 logs created in java service to APM Server

**URL:** <https://discuss.elastic.co/t/how-to-capture-the-logj4-logs-created-in-java-service-to-apm-server/236023>\
**Category:** APM\
**Tags:** java\
**Created:** [June 6, 2020, 7:00am UTC](https://discuss.elastic.co/t/how-to-capture-the-logj4-logs-created-in-java-service-to-apm-server/236023 "2020-06-06T07:00:26Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Mohan\_vel](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Mohan\_vel](https://discuss.elastic.co/u/Mohan_vel)\
**Post date:** [June 16, 2020, 6:15am UTC](https://discuss.elastic.co/t/how-to-capture-the-logj4-logs-created-in-java-service-to-apm-server/236023/9 "2020-06-16T06:15:55Z")

</div>

Ok, Sounds Good but as of now i have configured everything in central management and mapped the json file it's working fine.

Also raised another case regarding ECS logging. Kindly look into this. Thanks.

[customizing-message-field-for-ecs-logging](https://discuss.elastic.co/t/customizing-message-field-for-ecs-logging-method-of-java-applications/237133)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-capture-the-logj4-logs-created-in-java-service-to-apm-server/236023)._
