Page History
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<Properties> ... <Property name="SysLogLevel">Off</Property> <Property name="SysLogHost">localhost</Property> <Property name="SysLogPort">4245</Property> ... </Properties> <Appenders> ... <Syslog name="logNotificationAppender" format="RFC5424" host="${SysLogHost}" port="${SysLogPort}" protocol="UDP"> <ThresholdFilter level="WARN"/> <PatternLayout charset="UTF-8" pattern="<134>1 %d{yyyy-MM-dd'T'HH:mm:ss.SSS}{Etc/UTC}Z ${hostName} AgentController { "subagentId":""controllerId":"%X{js7.serverId}"", "role":""instanceId":"%X{js7.clusterNodeId}"", "level":"%p", "logger":""level":"%p", "logger":"%c{1}"", "message":""message":"%enc{%m}{JSON}"", "thrown":""thrown":"%enc{%throwable{10}}{JSON}""}"/> </Syslog> ... </Appenders> <Loggers> ... <Root level="${RootLogLevel}"> ... <AppenderRef ref="logNotificationAppender" level="${SysLogLevel}"/> </Root> </Loggers> |
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
.
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<Properties> ... <Property name="SysLogLevel">Off</Property> <Property name="SysLogHost">localhost</Property> <Property name="SysLogPort">4245</Property> ... </Properties> <Appenders> ... <Syslog name="LogNotificationAppender" format="RFC5424" host="${SysLogHost}" port="${SysLogPort}" protocol="UDP"> <ThresholdFilter level="WARN"/> <PatternLayout charset="UTF-8" pattern="<134>1 %d{yyyy-MM-dd'T'HH:mm:ss.SSS}{Etc/UTC}Z ${hostName} Agent { "instanceId":""instanceId":"%X{js7.serverId}"", "role":""role":"%X{js7.clusterNodeId}"", "level":"%p", "logger":""level":"%p", "logger":"%c{1}"", "message":""message":"%enc{%m}{JSON}"", "thrown":""thrown":"%enc{%throwable{10}}{JSON}""}"/> </Syslog> ... </Appenders> <Loggers> ... <Root level="${RootLogLevel}"> ... <AppenderRef ref="logNotificationAppender" level="${SysLogLevel}"/> </Root> </Loggers> |
Explanations:
- Similar to Controller Log4j configuration, see above.
...
Overview
Content Tools