Created attachment 814619 [details] server log Description of problem: The server.log in /var/log/ovirt-engine/ grows very quickly, over 1.5GB in a day. It seems to be logging a lot of http/xml traffic to the server.log from [httpclient.wire.header] component: small sample from log: 2013-10-21 16:06:25,464 DEBUG [org.apache.commons.httpclient.HttpMethodBase] (pool-4-thread-47) Adding Host request header 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.header] (pool-4-thread-47) >> "Content-Type: text/xml[\r][\n]" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.header] (pool-4-thread-47) >> "User-Agent: Apache XML RPC 3.1.3 (Jakarta Commons httpclient Transport)[\r][\n]" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.header] (pool-4-thread-47) >> "Host: 10.35.160.45[\r][\n]" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.header] (pool-4-thread-47) >> "Content-Length: 779[\r][\n]" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.header] (pool-4-thread-47) >> "[\r][\n]" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "<" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "?" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "x" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "m" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "l" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> " " 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "v" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "e" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "r" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "s" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "i" 2013-10-21 16:06:25,464 DEBUG [httpclient.wire.content] (pool-4-thread-47) >> "o" .... Version-Release number of selected component (if applicable): rhevm-3.3.0-0.27.beta1.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1. Install is19 2. Run some standard operations 3. check server.log Actual results: Server.log size is huge Expected results: Server.log did not use to log all the [httpclient.wire.content] traffic Additional info:
This is apparently caused by logging configuration in: /etc/ovirt-engine/engine-config/log4j.xml set to DEBUG by default. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="/var/log/ovirt-engine/engine-config.log"/> <param name="Append" value="true"/> <param name="MaxFileSize" value="1500KB"/> <param name="MaxBackupIndex" value="1"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> </layout> </appender> <root> <priority value="DEBUG"/> <appender-ref ref="FILE"/> </root> </log4j:configuration>
So, first of all /etc/ovirt-engine/engine-config/log4j.xml contains logging configuration only for engine-config tool, so it affects only /var/log/ovirt-engine/engine-config.log. But you are right, that priority value should be set to INFO by default. Configuration of ovirt-engine logging is contained in /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in The problem is caused by upgrade to JBoss EAP 6.2, they changed logging behavior. So this is a duplicate of 1021346 *** This bug has been marked as a duplicate of bug 1021346 ***