Page History
Table of Contents |
---|
Introduction
JS7 allows Log Management with JOC Cockpit offering a central view for monitoring of log output created by JS7 products.
...
Display feature availability | ||
---|---|---|
|
Log4j2 Configuration
By default the Log4j configuration of JS7 products will not make use of the Log Management Service. Instead, users choose for which instances of JS7 products they want to send log output to the Log Management Service.
Controller Log4j2 Configuration
The following Log4j2 configuration is available from the log4j2.xml-example
file in the Controller's <controller-data>/config
directory:
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<Appenders> <Syslog name="RFC5424" format="RFC5424" host="localhost" port="4514" protocol="UDP" charset="UTF-8" facility="LOCAL0" newLine="false"> <PatternLayout pattern="<134>1 %d{ISO8601}{ETC/UTC}Z ${hostName} JS7 Controller { "host":"${hostName}", "controllerId":"${ControllerId}", "thread":"%t", "level":"%p", "logger":"%c{1}", "message":"%enc{%m}{JSON}", "thrown":"%enc{%throwable{10}}{JSON}" }" /> </Syslog> </Appenders> |
Explanations:
- tbd
Agent Log4j2 Configuration
The following Log4j2 configuration is available from the log4j2.xml-example
file in the Agent's <agent-data>/config
directory:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<Appenders> <Syslog name="RFC5424" format="RFC5424" host="localhost" port="4514" protocol="UDP" charset="UTF-8" facility="LOCAL0" newLine="false"> <PatternLayout pattern="<134>1 %d{ISO8601}{ETC/UTC}Z ${hostName} JS7 Controller { "host":"${hostName}", "controllerId":"${ControllerId}", "agentId":"...", "level":"%p", "logger":"%c{1}", "message":"%enc{%m}{JSON}", "thrown":"%enc{%throwable{10}}{JSON}" }" /> </Syslog> </Appenders> |
Explanations:
- tbd
JOC Cockpit Log4j2 Configuration
The following Log4j2 configuration is available from the log4j2.xml-example
file in the JOC Cockpit's <jetty-base>/resources/joc
directory:
...