How can I disable logging of JIRA STATS?

Frank Schimmel February 4, 2022

Hi,

DEBUG level logging of JIRA STATS is annoying, but I do not see where I change the log level or prevent logging of JIRA STATS.

The KB article https://confluence.atlassian.com/jirakb/jira-stats-logs-1041078856.html tells a lot, but not how to enable or disable this logging that I would only enable in certain situations, but not by default!

I want to emphaze that I expect also this log configuration to be found in the Logging and Profiling section of the Admin GUI, not in a file as system property, since I am not an IT admin with access to OS level.

Thanks

Frank

 

 

3 answers

0 votes
Scott Dudley _Cenote_
Contributor
November 16, 2023

I found that adding the following to $JIRA_HOME/atlassian-jira/WEB-INF/classes/log4j2.xml seems to stop most of the statistics logging:

<Logger name="com.atlassian.jira.util.stats" level="WARN" additivity="false"><AppenderRef ref="filelog"/></Logger>
<Logger name="com.atlassian.jira.index" level="WARN" additivity="false"><AppenderRef ref="filelog"/></Logger>
<Logger name="com.atlassian.jira.issue.index" level="WARN" additivity="false"><AppenderRef ref="filelog"/></Logger>
<Logger name="com.atlassian.jira.index.ha" level="WARN" additivity="false"><AppenderRef ref="filelog"/></Logger>
<Logger name="com.atlassian.jira.versioning" level="WARN" additivity="false"><AppenderRef ref="filelog"/></Logger>

If you don't have filesystem access as an admin, you can go and add these packages by using the "Configure logging level for another package" link on the admin "Logging and Profiling" page (use the package name as what is shown under each of the "name" attributes above, and configure each for WARN level). Note, however, that this will not persist across Jira server restarts.

0 votes
Frank Schimmel February 25, 2022

Hello dear community and Atlassian experts,

Is there someone who can answer my question, please?

Any hint is appreciated!

Frank

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.5
TAGS
AUG Leaders

Atlassian Community Events