<div dir="ltr"><span style="font-size:12.8px">Hi All,</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">I have tried to create logfile with respect to below requirment.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">1.Create 2 files in which should be have size 100 KB.</div><div style="font-size:12.8px">2.If size of the 2nd file reaches 100 KB then it should be delete oldest file and then write the new file.<br><br>And i have configured like below.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div><appender name="APP_FILE" class="ch.qos.logback.core.<wbr>rolling.RollingFileAppender"></div><div>      <rollingPolicy class="ch.qos.logback.core.<wbr>rolling.<wbr>TimeBasedRollingPolicy"></div><div>        <fileNamePattern>${org.apache.<wbr>nifi.bootstrap.config.log.dir}<wbr>/logfile_%d{yyyy-MM-dd_HH}.%i.<wbr>log</fileNamePattern></div><div>        <<wbr>timeBasedFileNamingAndTriggeri<wbr>ngPolicy class="ch.qos.logback.core.<wbr>rolling.SizeAndTimeBasedFNATP"<wbr>></div><div>          <maxFileSize>100KB</<wbr>maxFileSize></div><div>          <maxHistory>2</maxHistory></div><div>        </<wbr>timeBasedFileNamingAndTriggeri<wbr>ngPolicy></div><div>      </rollingPolicy></div><div>      <encoder></div><div>        <pattern>%d{yyyy-MM-dd}T%d{HH:<wbr>mm:ss.SSS} %msg%n</pattern></div><div>      </encoder></div><div>    </appender><br><br>With help of above configuration i can create logfile with size 100 KB but maxHistory not worked.It always create new file if size exceeds 100KB.<br><br>I am using logback-core 1.2.3.<br><br>Can anyone help me to achieve my requirment?<br><br>Am i missed anythink?<br><br>Thanks,<br>prabhu</div></div></div>