Skip to content

Apache Lucene open-source search software

SOLR-11957: Increase MaxFileSize=32MB and MaxBackupIndex=10 for RollingFileAppender in log4j.properties

Shalin Shekhar Mangarfc8c239f93da
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index acf918c18e1..c7a7446fb32 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -81,6 +81,8 @@ Upgrade Notes
* SOLR-12011: Replicas which are not up-to-date are not allowed to become leader. Use FORCELEADER API to
allow these replicas become leader.
+* SOLR-11957: The default Solr log file size and number of backups is raised to 32MB and 10 respectively
+
New Features
----------------------
* SOLR-11285: Simulation framework for autoscaling. (ab)
@@ -347,6 +349,9 @@ Other Changes
* SOLR-12031: Refactor Policy framework to make simulated changes affect more than a single node (noble)
+* SOLR-11957: Increase MaxFileSize=32MB and MaxBackupIndex=10 for RollingFileAppender in log4j.properties
+ (Varun Thacker, shalin)
+
================== 7.2.1 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
diff --git a/solr/example/resources/log4j.properties b/solr/example/resources/log4j.properties
index 02f91c5daef..c6e90367f81 100644
--- a/solr/example/resources/log4j.properties
+++ b/solr/example/resources/log4j.properties
@@ -9,8 +9,8 @@ log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x [%X{collect
#- size rotation with log cleanup.
log4j.appender.file=org.apache.log4j.RollingFileAppender
-log4j.appender.file.MaxFileSize=4MB
-log4j.appender.file.MaxBackupIndex=9
+log4j.appender.file.MaxFileSize=32MB
+log4j.appender.file.MaxBackupIndex=10
#- File to log to and log format
log4j.appender.file.File=${solr.log}/solr.log
diff --git a/solr/server/resources/log4j.properties b/solr/server/resources/log4j.properties
index 9f9c4a0f749..c0ed34c0106 100644
--- a/solr/server/resources/log4j.properties
+++ b/solr/server/resources/log4j.properties
@@ -10,8 +10,8 @@ log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p
#- size rotation with log cleanup.
log4j.appender.file=org.apache.log4j.RollingFileAppender
-log4j.appender.file.MaxFileSize=4MB
-log4j.appender.file.MaxBackupIndex=9
+log4j.appender.file.MaxFileSize=32MB
+log4j.appender.file.MaxBackupIndex=10
#- File to log to and log format
log4j.appender.file.File=${solr.log}/solr.log