Important Tips
-
Be sure to configure the appender before having it referenced from the
logger. Thenameattribute of theappendershould match theappender-refattribute of thelogger. - When multiple appenders are referenced by a single logger, the event is logged to all specified destinations, ensuring redundancy and flexibility in log storage.
- A single appender can be used to log events with any event id.
- XSP logging is built with the Logback framework. For details on each appender, refer to the Logback Documentation
Appenders
Syslog
The syslog appender sends log events to remote destinations and is commonly used to centralize XSP logs in a SIEM. The following example demonstrates how to configure the syslog appender to send all audit events, formatted as JSON, to the hostsyslog.xorlab.com:
Syslog with TCP
To send the syslog messages via TCP, you can set the syslog appender’s protocol toTCP.
AsyncAppenderWhen using TCP as the protocol for
SyslogAppender, it’s required to use AsyncAppender. This prevents system impairment if the external destination becomes unreachable.Syslog with TLS
To securely transmit logs to other servers, you can use the TLS protocol by setting the syslog appender’s protocol toSSL.
AsyncAppenderWhen using SSL as the protocol for
SyslogAppender, it’s required to use AsyncAppender. This prevents system impairment if the external destination becomes unreachable.File
The File appender writes log events to a specified file. It’s a straightforward method for persistent log storage. This appender is ideal for keeping long-term logs or when logs need to be archived.Not supported for XSP SaaSThe file appender is only available for on-premise deployments of XSP. It is not supported for customers using xorlab’s cloud services.
Rolling File
The Rolling File appender extends the File appender, automatically handling file rollovers based on size or time. This is useful for managing log files without manual intervention, preventing them from becoming too large.Not supported for XSP SaaSThe rolling file appender is only available for on-premise deployments of XSP. It is not supported for customers using xorlab’s cloud services.
example@xorlab whenever someone reports an email.