How to retrieve all audit entries using the audit log API in Bitbucket Server and Data Center

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.

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

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

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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

Our Audit Log API allows you to fetch project and repository audits and we can re-iterate this over to get complete details. However, in case you need to get complete details in one call please refer to the below API.

Environment

7.X,8.X

Solution

The maximum capacity for this API call is set at 10,000. This limit has been established as a measure to safeguard the system from excessive load

curl  --user <bitbucket-admin-username>:<password> -H "Accept:application/json" -X GET  "<Bitbucket-base-url>/rest/auditing/1.0/events?limit=10000"

For the subsequent set of 10,000 audit entries, use the 'nextPageLink' URL, found at the end of the previous call. This allows you to retrieve additional 10,000 entry batches and so on.




Last modified on Dec 18, 2023

Was this helpful?

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