- Open the
logback-audit.xmlas created in Before You Begin. - Add the following
appenderandlogger:logback-audit.xml - Adjust
syslogHostandportto match your Syslog destination. For a list of all available attributes, see Available attributes. - Optional: Adjust
patternto the chosen format as described in Before You Begin - Adjust the
logger nameto match the event that you want to log. - If you want to use TCP or TLS instead of UDP, follow below Use Syslog with TCP or TLS.
- Click Publish. The logging configuration becomes active within about one minute.
Use Syslog with TCP or TLS
To enable Syslog with TCP or TLS:- Set
protocolto eitherTCPorSSL. - Add an
AsyncAppenderwrapper:logback-audit.xml
Available attributes
The following configuration parameters are supported by the syslog appender:KeepAlive appender for timeout issues
The KeepAlive appender can be used to periodically trigger another appender to log a keep alive event. It’s main use case is together with the Syslog Appender to make sure the underlying TCP connection does not time out.The KeepAlive appender is not required for normal operations. It is only used in special cases if there are underlying TCP related connection issues.