You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2022/06/08 16:46:36 UTC
[accumulo] branch main updated: Update default log configuration (#2759)
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 354190f080 Update default log configuration (#2759)
354190f080 is described below
commit 354190f080035457b7ea74729795babfcecbd7f7
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Wed Jun 8 12:46:30 2022 -0400
Update default log configuration (#2759)
Change default filename and size triggering limit for rolling log files:
* Drop hour from filename to use daily logs instead of hourly
* Use 4 digit year to disambiguate between 2 digit time components
* Put year first so file names sort better and read more clearly
* Increase size trigger from 100MB to 512MB to roll less often
---
assemble/conf/log4j2-service.properties | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/assemble/conf/log4j2-service.properties b/assemble/conf/log4j2-service.properties
index 4e0302531d..2355f87632 100644
--- a/assemble/conf/log4j2-service.properties
+++ b/assemble/conf/log4j2-service.properties
@@ -40,7 +40,7 @@ appender.console.filter.threshold.level = info
appender.rolling.type = RollingFile
appender.rolling.name = LogFiles
appender.rolling.fileName = ${filename}.log
-appender.rolling.filePattern = ${filename}-%d{MM-dd-yy-HH}-%i.log.gz
+appender.rolling.filePattern = ${filename}-%d{yyyy-MM-dd}-%i.log.gz
appender.rolling.layout.type = PatternLayout
appender.rolling.layout.pattern = %d{ISO8601} [%-8c{2}] %-5p: %m%n
appender.rolling.policies.type = Policies
@@ -48,14 +48,14 @@ appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
appender.rolling.policies.time.interval = 1
appender.rolling.policies.time.modulate = true
appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
-appender.rolling.policies.size.size=100MB
+appender.rolling.policies.size.size=512MB
appender.rolling.strategy.type = DefaultRolloverStrategy
appender.rolling.strategy.max = 10
appender.audit.type = RollingFile
appender.audit.name = AuditLogFiles
appender.audit.fileName = ${filename}.audit
-appender.audit.filePattern = ${filename}-%d{MM-dd-yy-HH}-%i.audit.gz
+appender.audit.filePattern = ${filename}-%d{yyyy-MM-dd}-%i.audit.gz
appender.audit.layout.type = PatternLayout
appender.audit.layout.pattern = %d{ISO8601} [%-8c{2}] %-5p: %m%n
appender.audit.policies.type = Policies
@@ -63,7 +63,7 @@ appender.audit.policies.time.type = TimeBasedTriggeringPolicy
appender.audit.policies.time.interval = 1
appender.audit.policies.time.modulate = true
appender.audit.policies.size.type = SizeBasedTriggeringPolicy
-appender.audit.policies.size.size=100MB
+appender.audit.policies.size.size=512MB
appender.audit.strategy.type = DefaultRolloverStrategy
appender.audit.strategy.max = 10