How to change the location of stdout and stderr logs

お困りですか?

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

コミュニティに質問

If JIRA is running as service in Windows, stdout_*.log and stderr_*.log files will be created. These files will grow rapidly and over time can become very large. You can change the location of these files to a different location, if needed, using the following methods:

方法 1

  1. Remove the JIRA service.
  2. Open the service.bat file with editor and find the parameter below:

    set PR_LOGPATH=%CATALINA_BASE%\logs
    set PR_STDOUTPUT=auto
    set PR_STDERROR=auto
    
  3. Change set PR_LOGPATH=%CATALINA_BASE%\logs to any location you wish, for example set PR_LOGPATH=D:\logs
  4. Run service.bat install JIRA_SERVICE_NAME to install JIRA as a service again.

方法 2

  1. Open the JIRA service configuration as explained at Setting Properties and Options on Startup - via CommandLine.
  2. Modify the location of the Redirect Stdout and Redirect Stderr paths as shown in the screenshot below:

    (info) Ensure that the user running Jira service has appropriate permissions to the file/directory where you want to redirect the logs to
  3. 変更を適用します。
  4. Restart JIRA service for the changes to take effect.


(info) You can also rotate Catalina log file. See How to Rotate Catalina Log File

最終更新日 2022 年 8 月 24 日

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

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