How to change the location of stdout and stderr logs
If JIRA is running as service in Windows,
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:
- Remove the JIRA service.
service.batfile with editor and find the parameter below:
set PR_LOGPATH=%CATALINA_BASE%\logs set PR_STDOUTPUT=auto set PR_STDERROR=auto
set PR_LOGPATH=%CATALINA_BASE%\logsto any location you wish, for example
service.bat install JIRA_SERVICE_NAMEto install JIRA as a service again.
- Open the JIRA service configuration as explained at Setting Properties and Options on Startup - via CommandLine.
- Modify the location of the
Redirect Stderrpaths as shown in the screenshot below:
Ensure that the user running Jira service has appropriate permissions to the file/directory where you want to redirect the logs to
- Apply the changes.
- Restart JIRA service for the changes to take effect.
You can also rotate Catalina log file. See How to Rotate Catalina Log File