How to query audit log settings in Bitbucket Datacenter?

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Data Center のみ - この記事は、Data Center プラットフォームのアトラシアン製品にのみ適用されます。

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

The audit log settings page can be accessed from Bitbucket UI by Navigating to Bitbucket admin page → Audit log → Click on the 3 dots on the right-hand top and click on settings. 


To retrieve the values set in the audit logs settings page, please run the database query in the solution section.  


環境

7.X, 8.X


ソリューション

Audit log settings details are stored in the plugin_setting table, run the below query to find these details in the database.

select * from plugin_setting where key_name like '%com.atlassian.audit.plugin:audit-config%';


"com.atlassian.audit.plugin:audit-config:retention:max:file:count"  is equivalent to "Files per node" in the UI under "Audit log file retention"

"com.atlassian.audit.plugin:audit-config:retention:period" is equivalent to the Database retention period. similarly, you can find other Coverage areas with their Coverage levels. 


Note : Database has a hard limit and can store a max of 10,000,000 records irrespective of the number of years set for the database retention period, this limit is in place to stop flooding the database and avoid performance issues, hence the audit logs are also stored in the file system in JSON format, by default 100 files are stored in the file system which is configurable, you can increase this by setting "Number of files stored" option in Audit log settings page.



最終更新日 2023 年 8 月 28 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.