We are in the process of upgrading from Solr7.4.0 to Solr8.5.2, and we are experiencing intermittent problem with log rotation
Our log4j2.xml file (both for Solr7.4.0 and for Solr8.5.2) includes the following: <RollingFile name="RollingFile" fileName="${sys:user.home}/${sys:solr.solr.instname}/solr.log" filePattern="${sys:user.home}/${sys:solr.solr.instname}/solr.log.%d{yyyyMMdd.HHmmss}" > <PatternLayout> <Pattern> %d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n </Pattern> </PatternLayout> <Policies> <OnStartupTriggeringPolicy /> <SizeBasedTriggeringPolicy size="${sys:log.file.size}"/> </Policies> <DefaultRolloverStrategy max="${sys:log.backup.index}"/> </RollingFile> When we start our Solr nodes, we pass in "-Dlog.backup.index=99" Last month, we had a problem in that, on those nodes which have been upgraded to Solr8.5.2, only the two most recent solr.log files were being retained. That problem went away in the middle of last month, but has reappeared over the weekend. Log rotation has been consistently been correct on those nodes which are still running Solr7.4.0 Has anyone else encountered any similar phenomenon? Has Solr8 introduced some limitation on DefaultRolloverStrategy max which varies by the day of the month? (or by the phase of the moon? Or something else?)