Can I configure Jira & Confluence to compress their rotated logs?

Using logrotate, my system logs are rotated and compressed. Jira and Confluence are rotating their own logs, but not compressing them.

Is there a configuration change I can make such that Jira and Confluence will compress their own logs?

1 answer

This widget could not be displayed.

Just adding ".gz" to the log's filename in log4j.properties file ought to be good enough to get JIRA and Confluence to compress their logs after rolling over.

I am probably missing something. I understand that I can gzip the files myself and that will result in compressed files. But I'd like Jira to do this.

And I am completely NOT understanding how changing a file name will change Jira's behavior.

I apologize if I'm missing your point.

Jira uses log4j for its logging. It might be possible to set a parameter in the log4j.properties file. It is unclear to me looking at the Jira log4j documentation which version Jira has since the documentation I was looking at did not seem to match the log4j file.

Doh! My bad. I was using this feature on another project and didn't realize it wasn't supported on the version of log4j bundled with JIRA and Confluence (1.2.xx).

I'm not sure there's an easy way to get this done unless you're willing to perform a bit of extra work and script a solution.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 5 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

23 views 0 2
Join discussion

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