Hi,<div><br></div><div>I'm using SiftingAppender on top of an appender that uses compression. When using a variable (like username) that will show up more than once, it works great. But when using a session id which is unique, then the log file will not be triggered for compression leading to larger disk usage. Is there a way to go about triggering the file to be compressed when the SiftingAppender closes the child appender after it's timeout period?</div>
<div><br></div><div>Definition of my appender:</div><div> <appender name="SIFT-SESSION_ID" class="ch.qos.logback.classic.sift.SiftingAppender"></div><div><div> <discriminator class="ch.qos.logback.classic.sift.MDCBasedDiscriminator"></div>
<div> <key>SESSION_ID</key></div><div> <defaultValue>unknown</defaultValue></div><div> </discriminator></div><div> <sift></div><div> <appender name="FILE-${SESSION_ID}" class="ch.qos.logback.core.rolling.RollingFileAppender"></div>
<div> <encoder></div><div> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS zz} %-5level [%thread] %logger{35} - %msg%n%xEx{full}</pattern></div><div> </encoder></div><div> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"></div>
<div> <fileNamePattern>${CONTEXT_DATA_PATH}/logs/session/session-${SESSION_ID}.%d{yyyy-MM-dd}.%i.txt.zip</fileNamePattern></div><div> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"></div>
<div> <maxFileSize>100MB</maxFileSize></div><div> </timeBasedFileNamingAndTriggeringPolicy></div><div> </rollingPolicy></div><div> </appender></div><div> </sift></div>
<div> </appender></div></div><div><br></div><div>Thanks!</div><div>-- TJ</div>