How to enable HTTP wire debug logging in Bitbucket Data Center

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The wire log records all data transmitted to and from servers when executing HTTP requests. It uses theorg.apache.http.wirelogging category. This log should only be enabled to debug problems, as it will produce a huge amount of log data.  

This article is an extension of the Bitbucket Enable debug logging documentation.  

Environment

Bitbucket 6, 7, 8, 9

Solution

To enable debug logging for the org.apache.http.wire logger, run this command in a terminal:

1 2 3 4 curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/org.apache.http.wire/debug # e.g. curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://192.168.1.21:7990/rest/api/latest/logs/logger/org.apache.http.wire/debug

To disable debug logging for the org.apache.http.wire logger, run this command in a terminal:

1 2 3 4 curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/org.apache.http.wire/warn # e.g. curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://192.168.1.21:7990/rest/api/latest/logs/logger/org.apache.http.wire/warn

Updated on February 25, 2025

Still need help?

The Atlassian Community is here for you.