Bug 1023888

Summary: Log4j config for RHQ-Storage leads to excessive logging
Product: [Other] RHQ Project Reporter: Stian Lund <stianlund+bugzilla>
Component: Configuration, Core Server, OperationsAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.9CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Stian Lund 2013-10-28 08:55:27 UTC
Description of problem:

The file
/opt/rhq/rhq-server/rhq-storage/conf/log4j-server.properties
defines logging for RHQ with 50 x 20MB files. 

log4j.appender.R.maxFileSize=20MB
log4j.appender.R.maxBackupIndex=50

This would be 1GB of files which could be considered exessive logging.

Obviously what is 'excessive' is a matter of definition but I cannot see the need for logging 1GB of logs for Cassandra.

Version-Release number of selected component (if applicable):
RHQ 4.9

Additional info:

# rolling log file
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.maxFileSize=20MB
log4j.appender.R.maxBackupIndex=50
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line %L) %m%n
# Edit the next line to point to your logs directory
log4j.appender.R.File=/opt/rhq/rhq-server/logs/rhq-storage.log
log4j.appender.R.Threshold=INFO