Log Forwarding(4.3)

You can send   log files to an external log collector by configuring the properties described in this section. All log files generated in  will be forwarded when log forwarding is enabled, including System, Platform, and EC logs.

The log structure, fields, and severity follow the JSON and RFC5424 specifications and it is a prerequisite to know one of these specifications to use the log forwarding functionality.

The following properties should be added to the values.yaml file to forward the logs to the external log collector:

Properties

Description

Default Value

Properties

Description

Default Value

mz.syslog.logging.enable

This property is used to enable or disable the logging.

false

mz.syslog.protocol

This property defines the protocol to use, either UDP or TCP.

UDP

mz.syslog.hostname

This property defines the hostname or IP address of the target log collector.

localhost

mz.syslog.port

This property defines the port of the target log collector.

514

mz.syslog.layouttype

This property defines the layout type based on the supported specifications. You can select either RFC5424 or JSON.

RFC5424

mz.syslog.includestacktrace

This property is used to include a full stack trace in your log messages.

false

mz.syslog.debuglogfile.enable

This property is used to generate a debug log file, useful when you need to determine any issues when configuring the log forwarding.

false

mz.syslog.debuglogfile.filename

This property defines the name of the debug log file.

syslog-debug.log

mz.syslog.debuglogfile.filedir

This property defines the location of the debug log file.

/tmp/syslog

mz.syslog.debuglogfile.filenum

This property defines the number of debug log file to be generated.

5