Bug 1021561 - [engine] Server.log logs large amounts of information
Summary: [engine] Server.log logs large amounts of information
Keywords:
Status: CLOSED DUPLICATE of bug 1021346
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 3.3.0
Assignee: Martin Perina
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-21 14:09 UTC by Gadi Ickowicz
Modified: 2016-02-10 19:11 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-23 13:45:23 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
server log (11.69 MB, application/gzip)
2013-10-21 14:09 UTC, Gadi Ickowicz
no flags Details

Description Gadi Ickowicz 2013-10-21 14:09:55 UTC
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:

Comment 2 Gadi Ickowicz 2013-10-22 07:43:45 UTC
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>

Comment 3 Martin Perina 2013-10-23 13:45:23 UTC
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 ***


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