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

お困りですか?

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

コミュニティに質問

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

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.

*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
最終更新日 2023 年 4 月 12 日

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

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