Replies: 2 comments 1 reply
-
agent exports logs in OTLP format. Please elaborate why you believe the logs are exported in json.
no. If you wish to get the logs exactly as written by logback you may need to use some other tool. |
Beta Was this translation helpful? Give feedback.
-
I have somewhat similar question. So decided to write in this thread instead of opening the new question. I believe the initial question is slightly wrong, as In our setup we have java application logs in json format and auto Instrumentation setup for the application with {"timestamp":"2024-11-17T06:35:26.548Z","version":"1","message":"Commencing graceful shutdown. Waiting for active requests to complete","logger_name":"org.springframework.boot.web.embedded.tomcat.GracefulShutdown","thread_name":"SpringApplicationShutdownHook","level":"INFO","level_value":20000} |
Beta Was this translation helpful? Give feedback.
-
I am using
opentelemetry-javaagent.jar
to export metrics, traces and logs, but the logs exported byopentelemetry-javaagent.jar
are in json format. Is there any way to modify the exported logs to the format configured inlogback.xml
?Beta Was this translation helpful? Give feedback.
All reactions