Incoorporate APM agent logging with application logging

Hello all,

I am trying to incoorporate the logging coming from the apm agent with my application logging. However, I do not seem to be able to figure out how to use the custom layout class that I defined and use for my application logging to also format my apm agent logging. I am using the logback-spring.xml. I already tried to add the co.elastic.apm.agent as a logger configuration and reference it to my appender:

<logger name="co.elastic.apm.agent" level="INFO">
        <appender-ref ref="CONSOLE" />

But this does not change anything. Has anyone managed to format the apm logging in such a way that it becomes possible to add custom fields and convert to JSON format? I can see the apm agent logging in my openshift console. So it is showing up. I would be interested to see this to for example see when the apm has connection issues with the server together with my application logging in Kibana. Has anyone done this succesfully?

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