Enabling logging in Jira Data Center affects all nodes

お困りですか?

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

コミュニティに質問

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

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

*Fisheye および Crucible は除く

要約

Changing a logging level in JIRA Data Center will affect all nodes regardless of what node you're accessing at the time of the change. 

Therefore if you access logging and profiling on any node and enable HTTP Access Logging (for example), it will affect all the nodes in the cluster.

This is accomplished through the clustermessage table:

select * from clustermessage where message like 'Log Level:%' order by message_time desc;
  id   | source_node | destination_node | claimed_by_node |                                 message                                  |        message_time        
-------+-------------+------------------+-----------------+--------------------------------------------------------------------------+----------------------------
 10101 | node1       | ALL              |                 | Log Level:-com.atlassian.jira.web.filters.accesslog.AccessLogFilter-INFO | 2021-05-24 20:40:49.265-03
 10100 | node1       | ALL              |                 | Log Level:-a.b.c.d-WARN                                                  | 2021-05-24 20:24:14.646-03
 10003 | node1       | ALL              |                 | Log Level:-webwork.util.ServletValueStack-ERROR                          | 2021-05-24 20:23:30.555-03
tip/resting Created with Sketch.

If you restart one node out of the cluster after these changes, this one node will have the default logging again (from it's own log4j.properties file). 

Adding logging for only one node

If your goal is to be more specific and you're investigating an issue on just one node and don't want the logging changes to affect all nodes you can utilize log4j

see our logging and profiling documentation for more information. 


最終更新日 2024 年 11 月 20 日

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

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