Unable to export log to otel using log4j2 appender #12420
Replies: 6 comments 6 replies
-
You can refer to this example: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/log4j/log4j-appender-2.17/library/README.md#usage |
Beta Was this translation helpful? Give feedback.
-
@mohit32573 The available settings are described here: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/log4j/log4j-appender-2.17/library/README.md#settings-for-the-log4j-appender Have you followed this documentation? |
Beta Was this translation helpful? Give feedback.
-
Can any one help on this ? Thanks |
Beta Was this translation helpful? Give feedback.
-
@mohit32573 Your configuration in the second screenshot is different from the configuration described in the doc: Have you updated your configuration? If it still does not work, please provide your last configuration. |
Beta Was this translation helpful? Give feedback.
-
Have you added this dependency? |
Beta Was this translation helpful? Give feedback.
-
I have tried to reproduce the issue from the information you have provided, but it seems to work on my side. Could you please provide a project reproducing the problem? |
Beta Was this translation helpful? Give feedback.
-
I am trying to setup up log export to otel collector, but unable to complete. I am using log4j2 appender. But getting different error. I am not using spring or spring boot.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions