Introduction
JS7 - Log Management is offered with JOC Cockpit for monitoring of log output and dispatch of notifications created by Controller, Agent & JOC Cockpit instances.
- Service
- The JS7 - Log Notification Service is used to collect warnings and errors from log output of Controller & Agent instances and to create JS7 - Notifications. JOC Cockpit notifications are created directly and without use of the service.
- The service is compliant to RFC5424, aka Syslog Protocol and offers restart capabilities.
- Clients
- Controller & Agent instances can act as clients to the Log Notification Service. The products can be configured to report warnings and errors to the Log Notification Service.
- Users have a choice to enable forwarding of warnings and errors during installation or later on by adjusting the Log4j configuration.
- User Interface
- The JOC Cockpit offers notifications from the JS7 - Monitor view.
FEATURE AVAILABILITY STARTING FROM RELEASE 2.7.2
Log4j Configuration
By default the Log4j configuration of Controller & Agent instances will not make use of the Log Notification Service. Instead, users choose for which instances of JS7 products they want to send errors and warnings to the Log Notification Service.
As a prerequisite the host and port used for the Log Notification Service have to be accessible for JS7 products.
The following examples explain the Log4j configuration.
Controller Log4j Configuration
The following Log4j configuration extract is available from the log4j2.xml-example
file in the Controller's <controller-data>/config
directory.
- Users can copy the
log4j2.xml-example
file to a file with the namelog4j2.xml
. Should this file exist, then the<Syslog>
element and related<Properties>
elements from the example file can be copied. - Users have to adjust settings from the
<Properties>
configuration elements. No changes must be applied to the<Syslog>
configuration.
Explanations:
SysLogLevel
: By default theOff
value is used that deactivates the Syslog Appender. A valueWARN
will forward warnings and errors to the Log Notification Service.SysLogHost
: The hostname of the JOC Cockpit instance operatiang the Log Notification Service.SysLogPort
: The port of the Log Notification Service in JOC Cockpit is required. The default value is4245
.
Agent Log4j Configuration
The following Log4j configuration is available from the log4j2.xml-example
file in the Agent's <agent-data>/config
directory.
- Users can copy the
log4j2.xml-example
file to a file with the namelog4j2.xml
. Should this file exist, then the<Syslog>
element and related<Properties>
elements from the example file can be copied. - Users have to adjust settings from the
<Properties>
configuration elements. No changes must be applied to the<Syslog>
configuration element.
Explanations:
- Similar to Controller Log4j configuration, see above.