1. Edit the $JFROG_HOME/artifactory/var/etc/artifactory/logback.xml file and add the following syslog appender:
2. Add this additional appender:
3. Save the file.
The above configuration will send the console.log log entries to Syslog. The Syslog logs can be viewed under the /var/log/messages or the /var/log/syslog files on the machine Syslog is configured on. More information on logback appenders can be found in this external article.
<appender name="SYSLOG" class= "ch.qos.logback.classic.net.SyslogAppender"> <syslogHost>syslog-server-URL</syslogHost> <facility>SYSLOG</facility> <suffixPattern>[%thread] %logger %msg</suffixPattern> </appender>
2. Add this additional appender:
<root> < level value="debug"/> <appender-ref ref="CONSOLE"/> <appender-ref ref="FILE"/> <appender-ref ref="SYSLOG"/> </root>
3. Save the file.
The above configuration will send the console.log log entries to Syslog. The Syslog logs can be viewed under the /var/log/messages or the /var/log/syslog files on the machine Syslog is configured on. More information on logback appenders can be found in this external article.