How to disable jira-stdout and jira-stderr logging on Windows

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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.

*Except Fisheye and Crucible

Purpose

When Jira is run as a Windows Service, Tomcat creates additional jira-stdout and jira-stderr log files under <JIRA_INST>/logs. These logs are in addition to Jira's own log files and are not necessary, and in some cases, you may wish to disable them to save on disk space.

Solution

  1. Identify the name of the service that Jira is installed as in Windows (Control Panel > Administrative Tools > Services):


  2. Open a command prompt from Start > Run > type 'cmd' > Enter.
  3. Change directory to the bin directory of your Jira installation directory.

  4. Run the following commands which will differ depending on your version of Jira:

    tomcat7w //ES//%SERVICENAME%
    
    tomcat8w //ES//%SERVICENAME%

    (info) In the above example, it would be tomcat7w //ES//Jira

  5. Click on the Logging tab to see the current logging configuration:
  6. Under Redirect Stdout and Redirect Stderror, remove the value "auto" so the fields are left empty.
  7. Click Apply and OK to save your changes

After these settings changes have been made, restart Jira and the Tomcat container will no longer log further output to jira-stdout or jira-stderr. Any pre-existing logs will remain and can safely be removed.

Last modified on Aug 25, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.