You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have started monitoring our application with the JMX exporter. Everything works well in terms of metrics, but we are experiencing a strange side effect. Our application log format gets overridden and we get a different logging format that messes with some of our other monitoring.
[INFO 2024-06-15 15:45:09 627] Logging level set to CONFIG
[INFO 2024-06-15 15:45:09 658] Caching nodes
[INFO 2024-06-15 15:45:09 694] DB connections to XYZ servers will be direct
However, when we start the application with JMX exporter java agent, our logs become unreadable. The same startup log lines look like:
Jun 17, 2024 2:20:30 PM <redacted classpath>
INFO: Logging level set to CONFIG
Jun 17, 2024 2:20:30 PM <redacted classpath>
INFO: Caching nodes
Jun 17, 2024 2:20:30 PM <redacted classpath>
INFO: DB connections to XYZ servers will be direct
Has anyone else encountered this? Is there a way to override jmx exporter logging format to fit our original log structure? Why is the exporter overriding application-specific settings?
Thanks
The text was updated successfully, but these errors were encountered:
... is executed in application code, after the initial calls to java.util.logging.Logger.getLogger() the format is most likely not changing the format.
Can you test passing passing the format as JVM argument? i.e. -Djava.util.logging.SimpleFormatter.format
We have started monitoring our application with the JMX exporter. Everything works well in terms of metrics, but we are experiencing a strange side effect. Our application log format gets overridden and we get a different logging format that messes with some of our other monitoring.
Our application has a specific logging format
which translates to:
However, when we start the application with JMX exporter java agent, our logs become unreadable. The same startup log lines look like:
Has anyone else encountered this? Is there a way to override jmx exporter logging format to fit our original log structure? Why is the exporter overriding application-specific settings?
Thanks
The text was updated successfully, but these errors were encountered: