ARTIFACTORY: How to reduce the amount of tomcat logs in 7.x with logrotate

ARTIFACTORY: How to reduce the amount of tomcat logs in 7.x with logrotate

AuthorFullName__c
Nir Ovadia
articleNumber
000005360
ft:sourceType
Salesforce
FirstPublishedDate
2022-08-04T06:54:33Z
lastModifiedDate
2022-08-04
VersionNumber
4

Currently in 7.x, there is a $ARTIFACTORY_HOME/var/log/tomcat/ folder that gets all the tomcat logs. This creates daily tomcat-catalina-<date>.log and tomcat-catalina-<date>.log files. In some setups this can create too many files or be annoying to manage. There are ways to customize the logging here though. In this article, we’ll be merging the daily logs into a single log file and rotating it into the $ARTIFACTORY_HOME/var/log/archived/ folder with all of the other rotated application logs.