How do we enable JIRA access logging with a property

On this document, it shows how to enable http access logging via gui but the setting is lost after a server restart. 

https://confluence.atlassian.com/jira/user-access-logging-121565.html

How can this setting be enabled via a property or file change? We are managing our JIRA configs with puppet and need this setting to be programmatically managed. 

Note: I see you can enable tomcat access logs in the server.xml but I'm asking specifically about these JIRA http access logs. 

1 answer

1 accepted

Looks like we I found the answer.

JIRA_INST/atlassian-jira/WEB-INF/classes/log4j.properties contains the following values and you would have to change OFF to ALL for the ones you want.

#####################################################
# Access logs
#####################################################
log4j.logger.com.atlassian.jira.web.filters.accesslog.AccessLogFilter = OFF, httpaccesslog
log4j.additivity.com.atlassian.jira.web.filters.accesslog.AccessLogFilter = false
log4j.logger.com.atlassian.jira.web.filters.accesslog.AccessLogFilterIncludeImages = OFF, httpaccesslog
log4j.additivity.com.atlassian.jira.web.filters.accesslog.AccessLogFilterIncludeImages = false
log4j.logger.com.atlassian.jira.web.filters.accesslog.AccessLogFilterDump = OFF, httpdumplog
log4j.additivity.com.atlassian.jira.web.filters.accesslog.AccessLogFilterDump = false

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published 4 hours ago in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

26 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot