Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Every 30 minutes, without fail, my Application Log is inundated with 22 SystemMetricLogRepository messages at the Warning level. This can make it hard to read my own error logs and has become a source of frustration for me. Is there any way I can make it so that I don't see these logs, reduce them down to a single Debug/Trace level message that tells me the metrics were measured, or have them be set to the Debug/Trace level altogether so they are out of my usual log viewing level?
Solved! Go to Solution.
There are 2 settings in platform-settings.json that should help:
MetricsLoggingFrequency: defines the frequency at which those metrics are printed, default 30 min
MetricsLoggingLevel: defines the loglevel at which they are printed, default to "WARN", So if you set this to INFO or DEBUG they will only show if ApplicationLog.log. is set to log level INFO or DEBUG .
For an example of where exactly to set them in platform-settings.json see platform-settings.json Configuration Details (ptc.com)
Note though that I would strongly recommend to leave them as is on a production server. Those metrics are very useful to check the health of a server and can be critical in investigating some type of issues. So that may be okay to lower them on a dev server where you may want to see other more relevant messages, but on production server those metrics can prove very useful.
Hope this helps
Christophe
Have you tried in PlatformSubsystem disabling "in Metrics Reporting tab?
Otherwise you can try putting your own logback file, it is explained here: https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Composer/System/Logs/configuringlogging.html
There are 2 settings in platform-settings.json that should help:
MetricsLoggingFrequency: defines the frequency at which those metrics are printed, default 30 min
MetricsLoggingLevel: defines the loglevel at which they are printed, default to "WARN", So if you set this to INFO or DEBUG they will only show if ApplicationLog.log. is set to log level INFO or DEBUG .
For an example of where exactly to set them in platform-settings.json see platform-settings.json Configuration Details (ptc.com)
Note though that I would strongly recommend to leave them as is on a production server. Those metrics are very useful to check the health of a server and can be critical in investigating some type of issues. So that may be okay to lower them on a dev server where you may want to see other more relevant messages, but on production server those metrics can prove very useful.
Hope this helps
Christophe