You may have noticed that under the JFROG_HOME/log directory, there is an "archived" folder. This usually contains the older logs of the application, by default up to 13 are kept.
If you want to increase the copies kept on the Artifactory host, this can be customized in the JFROG_HOME/etc/artifactory/logback.xml file. Look for the log filename you want to keep, for example this is the artifactory-request.log configuration:
<File>${log.dir}/artifactory-request.log</File>
The <maxIndex> tag in the appender block increases the count of old logs that are archived. You can also add a new tag, <MaxFileSize>, to increase the file size of the log file itself. No reboots are required for the change to take effect here.
<appender name="REQUEST" class="ch.qos.logback.core.rolling.RollingFileAppender"> <File>${log.dir}/artifactory-request.log</File> <encoder> <pattern>%m%n</pattern> </encoder> <rollingPolicy class="org.jfrog.common.logging.logback.rolling.FixedWindowWithDateRollingPolicy"> <FileNamePattern>${log.dir.archived}/artifactory-request.%i.log.gz</FileNamePattern> <maxIndex>30</maxIndex> <!--Increase to desired count, Ex 30 --> <MaxFileSize>30MB</MaxFileSize> <!--Added as a new line --> </rollingPolicy> <triggeringPolicy class="org.jfrog.common.logging.logback.triggering.SizeAndIntervalTriggeringPolicy"> <MaxFileSize>30MB</MaxFileSize> <!--Increase to match other size --> </triggeringPolicy> </appender>