mosermw commented on code in PR #7465: URL: https://github.com/apache/nifi/pull/7465#discussion_r1258816660
########## minifi/minifi-nar-bundles/minifi-framework-bundle/minifi-framework/minifi-resources/src/main/resources/conf/logback.xml: ########## @@ -35,6 +35,8 @@ <maxFileSize>1MB</maxFileSize> <!-- Provide a cap of 10 MB across all archive files --> <totalSizeCap>10MB</totalSizeCap> + <!-- This is supposed to force log cleanup when the service starts/restarts --> + <cleanHistoryOnStart>true</cleanHistoryOnStart> Review Comment: I tested this briefly, and cleanHistoryOnStart did respect the existing maxHistory when it cleaned up much older files that were outside that window. ########## nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/logback.xml: ########## @@ -30,10 +30,13 @@ To GZIP rolled files, replace '.log' with '.log.gz'. To ZIP rolled files, replace '.log' with '.log.zip'. --> - <fileNamePattern>${org.apache.nifi.bootstrap.config.log.dir}/nifi-app_%d{yyyy-MM-dd_HH}.%i.log</fileNamePattern> + <fileNamePattern>${org.apache.nifi.bootstrap.config.log.dir}/nifi-app_%d{yyyy-MM-dd_HH}.%i.log.gz</fileNamePattern> <maxFileSize>100MB</maxFileSize> <!-- keep 30 log files worth of history --> <maxHistory>30</maxHistory> + <totalSizeCap>100GB</totalSizeCap> Review Comment: Actually "keep 30 log files worth of history" is a bit misleading. maxHistory ignores the %i part of the fileNamePattern. If your pattern is "nifi-app_%d{**yyyy-MM-dd_HH**}.%i.log" then it's maxHistory hours, and a pattern of "nifi-app_%d{**yyyy-MM-dd**}.%i.log" is maxHistory days. You can rollover with the %i pattern hundreds of times and maxHistory doesn't care. Regardless, I'm in favor of a smaller default totalSizeCap instead of 100GB. nifi-registry and stateless appear to use 10GB here. I have no idea if totalSizeCap respects the %i pattern. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org