-
Hi guys. I have a Tomcat WebApplication running on Docker. A OTEL Collector is running also, in the same Docker Compose. Metrics and Traces are working ok, but cannot make work the logs sdk part (seems that the agent is not sending them). Trying to use log4j2 autoinstrumentation. Using OpenTelementry SDK: 1.19.2
Also added to webapp lib:
Log4J:
Log4j2.xml logs only to Console (SYSOUT). The WebApp is configured with envvars:
log4j2-appender seems to have been instrumented:
However, I cannot see in the WebApplication Logs that the LogEvent is sent to the OTEL Collector. OTEL collector has enabled "logs" pipeline.:
Do I need to add the OpenTelemetry Appender to the log4j2.xml manually? Or the integration should be donde automatically? I cannot figure out why the instrumentation is not working. This is the full Agent log when the logging is printed in the SYS OUT:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
hi @ggallotti, did you configure the log exporter? the default log exporter is still |
Beta Was this translation helpful? Give feedback.
-
How do you enable this verbose instrumentation logging? I tried |
Beta Was this translation helpful? Give feedback.
hi @ggallotti, did you configure the log exporter?
https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md#exporters
the default log exporter is still
none
since logs are still-alpha