Page History
...
The Log4j2 configuration file is log4j2.xml that is found with the following default locations as per JS7 component:
Windows | Unix | |
---|---|---|
Controller | C:\Program Files\sos-berlin.com\js7\controller\lib\log42j.xml | /opt/sos-berlin.com/js7/controller/lib/log4j2,xml |
Agent | C:\Program Files\sos-berlin.com\js7\agent\lib\log42j.xml | /opt/sos-berlin.com/js7/agent/lib/log4j2,xml |
JOC Cockpit | C:\ProgramData\sos-berlin.com\js7\joc\jetty_base\resources\joc\log42j.xml | /var/sos-berlin.com/js7/joc/jetty_base/resources/joc/log4j2,xml |
Changes to the Log4j2 configuration are applied within 60s and do not require the JS7 component to be restarted.
Log Rotation Strategy
By default log files are rotated on the following events:
...
- To modify the time zone that is applied to log entries and to the point in time of log rotation modify
<Property name="TimeZone">{Etc/UTC}</Property>
. The time zone is specified during installation. - To enable debug mode modify
<property name="LogLevel">INFO</property>
toDEBUG
. - To change the log retention period modify
<Property name="RetainDays">30d</Property>
to some other value. Consider to use the suffixd
(ays),w
(eeks),m
(onths). - To limit the max. size of an individual log file modify files modify
<Property name="MaxSizePerFile">100MB</Property>
to some other value. Consider to use the unitsMB
,GB
. - To limit space consumption of all log files modify
<Property name="MaxSizeOfRolledOverFiles">5GB</Property>
to some other value. Consider to use the unitsMB
,GB
.
...
- To modify the time zone that is applied to log entries and to the point in time of log rotation modify
<Property name="TimeZone">{Etc/UTC}</Property>
. The time zone is specified during installation. - To enable debug mode modify
<property name="LogLevel">INFO</property>
toDEBUG
. - To change the log retention period modify
<Property name="RetainDays">30d</Property>
to some other value. Consider to use the suffixd
(ays),w
(eeks),m
(onths). - To limit the max. size of an individual log file modify files modify
<Property name="MaxSizePerFile">100MB</Property>
to some other value. Consider to use the unitsMB
,GB
. - To limit space consumption of all log files modify
<Property name="MaxSizeOfRolledOverFiles">5GB</Property>
to some other value. Consider to use the unitsMB
,GB
.
...
Overview
Content Tools