Bug 1023888 - Log4j config for RHQ-Storage leads to excessive logging
Summary: Log4j config for RHQ-Storage leads to excessive logging
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration, Core Server, Operations
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-28 08:55 UTC by Stian Lund
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.