cancel
Showing results for 
Search instead for 
Did you mean: 

Solr logging rolling file issue with CronTriggeringPolicy

Former Member
0 Kudos

Solr rolling log file contains multiple strange characters(about 6 millions) on first line and error in the end that file can not be moved(See log4j2 configuration and next screenshots). This increase file size and complicates its processing.

log4j2 Rolling appender looks like

  <RollingFile
         name="RollingFile"
         fileName="${sys:solr.log.dir}/solr.log"
         filePattern="${sys:solr.log.dir}/solr-rol-%d{MM-dd-yyyy-HH-mm}-%i.log" >
       <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>
         
     <CronTriggeringPolicy schedule="0 0 */6 ? * *" />
       </Policies>
       <DefaultRolloverStrategy max="40"/>
     </RollingFile>
 


Log file looks like in the beginning

Log file looks like in the end

Accepted Solutions (0)

Answers (0)