on 07-02-2019 3:08 PM
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.