Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

JS7 - Log Management is offered with JOC Cockpit acting as a central point of view for monitoring of log output created by JS7 products.

...

Display feature availability
StartingFromRelease2.7.2

Log4j 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.

The following examples explain the Log4j configuration.

Controller Log4j Configuration

The following Log4j configuration example is available from the log4j2.xml-example file in the Controller's <controller-data>/config directory.

...

  • <Syslog>: The XML element holds the required configuration. The following attributes are available:
    • name: users a free to choose a name for the Syslog Appender.
    • format: The value RFC5424 is required.
    • host: The hostname or IP address of JOC Cockpit operating the Log Management Service.
    • port: The port to which the  Log Management Service listens.
    • protocol: The value UDP is required.
    • charset: The value UTF-8 is required.
    • facility: The value LOCAL0 is required
    • newLine: The value false is required.
  • <PatternLayout>: The XML element specifies the pattern used to send messages. The pattern must not be changed.

Agent Log4j Configuration

The following Log4j configuration is available from the log4j2.xml-example file in the Agent's <agent-data>/config directory.

...

  • Similar to Controller Log4j configuration, see above.

JOC Cockpit Log4j Configuration

The following Log4j configuration is available from the log4j2.xml-example file in the JOC Cockpit's <jetty-base>/resources/joc directory.

...