How to change time format of the audit log in Bitbucket Server

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

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

*Fisheye および Crucible は除く

要約

The audit log format in Bitbucket Server and Data Center 7 and newer is hardcoded internally and cannot be changed. By default the timestamp in audit log is in Unix format.

ソリューション

環境

  • Bitbucket Server and Data Center version 7 and newer

回避策

As a workaround, to change the timestamp from UNIX format to RFC-2822 (for example), you can use the following command:

awk -F'|' '{ print $1,"|",$2,"|",$3,"|",strftime("%c", $4),"|",$5,"|",$6,"|",$7,"|",$8; }' < atlassian-bitbucket-audit.log > atlassian-bitbucket-audit.log.date
更新日時: September 25, 2025

さらにヘルプが必要ですか?

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