How to forward Bitbucket Server's logging to syslog
The content on this page relates to platforms which are supported, however are out of scope of our Atlassian Support Offerings. Consequently, Atlassian cannot guarantee support. Please be aware that this material is provided for your information only and you may use it at your own risk.
Sometimes security teams require Bitbucket logs be appended to syslog or another service.
Bitbucket uses LogBack from QOS. The configuration for Bitbucket's logging can be found in <BITBUCKET SERVER INSTALLATION>/ATLASSIAN-BITBUCKET/WEB-INF/CLASSES/LOGBACK.XML. You can read more about configuring Bitbucket's logging in Configure Bitbucket Server Logging. You can configure an appender for either SysLog or some other logging service. You can read about that in Chapter 4: Appenders. If you need any assistance I would recommend contacting the QOS support.
Please note that this is unsupported and this change will have to applied after each upgrade. Fixing any issues related to this change are outside the scope of our support offerings.