Bug 1078738
Summary: | OVIRT35 - [RFE] make ovirt easy configurable to allow redirection of all logs to syslog | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Sven Kieske <s.kieske> |
Component: | ovirt-engine-extension-logger-log4j | Assignee: | Ravi Nori <rnori> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ondra Machacek <omachace> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.4 | CC: | alonbl, bazulay, bugs, gklein, herrold, iheim, oourfali, pdwyer, perobins, pmukhedk, rbalakri, rnori, sbonazzo, yeylon, yzaslavs |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | 3.5.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | infra | ||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-17 12:40:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sven Kieske
2014-03-20 09:23:14 UTC
As a first step, it would be cool if ovirt could include a syslog handler for jboss 7.1 as none is included in this version as a module. e.g.: http://randomtekkstuff.blogspot.de/2013/03/jboss-as-7-syslog-handler.html which is apache licensed. The next step would be adding these loghandlers to /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in and the third step would be to introduce some configuration file for logging of all engine components. This is part of the plan to pluggable the events/messages plan. So we have extension to accept alerts and may also add plain log4j appender into extension, that can do whatever it likes. (In reply to Alon Bar-Lev from comment #2) > This is part of the plan to pluggable the events/messages plan. > > So we have extension to accept alerts and may also add plain log4j appender > into extension, that can do whatever it likes. This request is about the entire log content not only for events. Do you mean for that extension to add pragmatically an appender to the logger in runtime ? (In reply to Barak from comment #3) > (In reply to Alon Bar-Lev from comment #2) > > This is part of the plan to pluggable the events/messages plan. > > > > So we have extension to accept alerts and may also add plain log4j appender > > into extension, that can do whatever it likes. > > This request is about the entire log content not only for events. > Do you mean for that extension to add pragmatically an appender to the > logger in runtime ? I truly wish it so, it will make our lives easier, as people will be able to extend the logging without core product configuration dependency. Even as simple as creating a bridge to other loggers such as log4j or slf4j. Another option is to find how in jboss we can programmable effect logging, so we can read our own configuration to create loggers. Current situation in which jboss service.xml must be modified is no solution. mentioned on the mailing list You could use logstash to ship logs to your central syslog. -- Ernest Beinrohr, AXON PRO ============ http://logstash.net/ * Apache license * rather fat -- 60+ megabyte tarball, and drags in a jruby dependency as well, and Yet Another Package Manager * "You can build rpms and debs, if you need those. Building rpms requires you have [fpm](https://github.com/jordansissel/fpm), then do this: ... " * their archive link is not useful for me in testing, and I do not see it packaged for EPEL so ... so probably not all that great an idea We introduced extension mechanism, so of we can intercept log entries at, we can send them out to an extension. The extension can do whatever it likes, including and not limited to sending to syslog. The missing but is the log interception, as far as I checked jboss logger does not allow adding appender from within the webapp context. Our options: 1. Have our own log4j instance at webapp, with own log4j properties to call our appender. 2. Introduce jboss module that will provide singleton appender bridge at the service scope, this appender will enable publush/subscriber interface to allow webapp to register their own appender. 3. Any other solution... that will work under jboss. Once log records can be intercepted at the webapp context, it will be trivial to send it out via extension. (In reply to Alon Bar-Lev from comment #6) > We introduced extension mechanism, so of we can intercept log entries at, we > can send them out to an extension. The extension can do whatever it likes, > including and not limited to sending to syslog. > > The missing but is the log interception, as far as I checked jboss logger > does not allow adding appender from within the webapp context. > > Our options: > > 1. Have our own log4j instance at webapp, with own log4j properties to call > our appender. > > 2. Introduce jboss module that will provide singleton appender bridge at the > service scope, this appender will enable publush/subscriber interface to > allow webapp to register their own appender. > > 3. Any other solution... that will work under jboss. > > Once log records can be intercepted at the webapp context, it will be > trivial to send it out via extension. AFAIK JBoss AS 7.1.x has moved from log4j to java.util.logging. See here a discussion about this - I think using the extensions is a good idea. So what we should probably have is an implementation ofjava.uti.logging.handler that will use an extenion in order to perform logging. Then you can setup up a logging extension as you desire. This bug is targeted to 3.6.0 and is in status post, but referenced patch is merged in 3.5.0 so this should be targeted to 3.5.0 in status modified. Can you please verify the status of this bug? work ok with ovirt-engine-extension-logger-log4j-0.0.0-0.0.1.master.el6_5.noarch oVirt 3.5 has been released and should include the fix for this issue. |