[Users] centralized Logging engine and hypervisor
Sven Kieske
S.Kieske at mittwald.de
Thu Mar 20 09:14:49 UTC 2014
Thanks for the heads up.
Honestly, I think it should be easy
to change logging from file-based to a central
syslog server, but it does not seem to be the case
for oVirt.
Does someone know how to rewrite this section from
/usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in
to use syslog?
<subsystem xmlns="urn:jboss:domain:logging:1.1">
<!-- All the application server messages go here: -->
<file-handler name="SERVER">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%d %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file path="$getstring('ENGINE_LOG')/server.log"/>
<append value="true"/>
</file-handler>
Am 20.03.2014 10:05, schrieb Ernest Beinrohr:
> Dňa 19.03.2014 17:12, Sven Kieske wrote / napísal(a):
>> Hi,
>>
>> I got a question regarding centralized logging:
>>
>> I guess in order to make the engine log to /dev/log
>>
>> I have to manipulate /etc/ovirt-engine/engine-config/log4j.xml ?
>>
>> I think these tutorials might fit somehow?
>>
>> https://blog.trifork.com/2010/01/14/logging-to-the-syslog-from-a-java-application/
>>
>> http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log-to-syslog
>>
>>
>> for vdsm I'll just have to change:
>>
>> /etc/vdsm/svdsm.logger.conf and /etc/vdsm/logger.conf
>>
>> to:
>>
>> handlers=syslog
>>
>> Am I on the right track for the engine-log?
>>
>
> Don't forget to backup the file, it's not marked as a config, so a new
> update will replace it :)
>
> $ rpm -q --qf '[%{filenames}: %{fileflags}\n]' -f
> /etc/ovirt-engine/engine-config/log4j.xml | grep log4j.xml
> /etc/ovirt-engine/engine-config/log4j.xml: 0
> /etc/ovirt-engine/engine-manage-domains/log4j.xml: 0
> /etc/ovirt-engine/notifier/log4j.xml: 1
>
>
--
Mit freundlichen Grüßen / Regards
Sven Kieske
Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
More information about the Users
mailing list