How to enable HTTP wire debug logging in Bitbucket Server

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Summary

The wire log is used to log all data transmitted to and from servers when executing HTTP requests. The wire log uses the org.apache.http.wire logging category. This log should only be enabled to debug problems, as it will produce an extremely large amount of log data.  

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

Environment

Bitbucket 6 and Bitbucket 7

Solution

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

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


Disable

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

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



Last modified on Jul 9, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.