Skip to Content
author's profile photo Former Member
Former Member

Solr logging rolling file issue with CronTriggeringPolicy

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

         filePattern="${sys:solr.log.dir}/solr-rol-%d{MM-dd-yyyy-HH-mm}-%i.log" >
           %d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
     <CronTriggeringPolicy schedule="0 0 */6 ? * *" />
       <DefaultRolloverStrategy max="40"/>

Log file looks like in the beginning

alt text

Log file looks like in the end alt text

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.