Enable log rotation JIRA server

vi /etc/logrotate.d/jira-tomcat.conf 

# Paste contents:
/opt/atlassian/jira/logs/catalina.out {
	rotate 5
	size 20M
	nocompress
	notifempty
	missingok
	copytruncate
}

# Run log rotate manually:
logrotate --force /etc/logrotate.d/jira-tomcat.conf

# Test
ls /opt/atlassian/jira/logs | grep catalina.out

catalina.out
catalina.out.1
Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp