I can observe this issue using logback 1.2.3 using the following configuration: <appender name="assyncappender" class="net.logstash.logback.appender.LoggingEventAsyncDisruptorAppender"> <appender class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${LOG_FILE}.json</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd-HH}.%i.json.gz</fileNamePattern> <maxFileSize>5MB</maxFileSize> <maxHistory>168</maxHistory> <totalSizeCap>10MB</totalSizeCap> </rollingPolicy> </appender> </appender> totalSizeCap doesn't have any effect. Even when the sum of logs has more than 10 MB they are not deleted. |