[Users] centralized Logging engine and hypervisor

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-applic... http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log... 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? -- 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

Well I found some old devel mail regarding this topic: http://lists.ovirt.org/pipermail/engine-devel/2011-November/000122.html is there another log4j.xml beside /etc/ovirt-engine/engine-config/log4j.xml ? I didn't find one which manages the engine.log Is this hard coded? Am 19.03.2014 17:12, schrieb Sven Kieske:
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-applic... http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log...
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?
-- 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

Hi Sven, AFAIK there following logging configuration files in ovirt-engine: 1) /etc/ovirt-engine/notifier/log4j.xml - for ovirt-engine-notifier service 2) /etc/ovirt-engine/engine-manage-domains/log4j.xml - for engine-manage-domains tool 3) /etc/ovirt-engine/engine-config/log4j.xml - for engine-config tool 4) /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in - for ovirt-engine service (webadmin & userportal) 1), 2) and 3) are standard log4j config files. 4) is JBoss deployment configuration which includes logging section. Martin Perina ----- Original Message -----
From: "Sven Kieske" <S.Kieske@mittwald.de> To: users@ovirt.org Sent: Wednesday, March 19, 2014 6:16:42 PM Subject: Re: [Users] centralized Logging engine and hypervisor
Well I found some old devel mail regarding this topic:
http://lists.ovirt.org/pipermail/engine-devel/2011-November/000122.html
is there another log4j.xml beside /etc/ovirt-engine/engine-config/log4j.xml ?
I didn't find one which manages the engine.log
Is this hard coded?
Am 19.03.2014 17:12, schrieb Sven Kieske:
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-applic... http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log...
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?
-- 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 _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi and thanks for this reply, I guess this will help me. I'm going to test it. Meanwhile I want to ask: Is this the correct location for an configuration file? I know it is maybe not intended for "normal" use to tweak this file, but I think it is a configuration file after all and should be under /etc/ like all the others? (This is why I didn't find it, I was just looking under /etc/ ) Am 19.03.2014 18:41, schrieb Martin Perina:
4) /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in - for ovirt-engine service (webadmin & userportal)
-- 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

----- Original Message -----
From: "Sven Kieske" <S.Kieske@mittwald.de> To: "Martin Perina" <mperina@redhat.com> Cc: users@ovirt.org Sent: Thursday, March 20, 2014 9:02:19 AM Subject: Re: [Users] centralized Logging engine and hypervisor
Hi and thanks for this reply, I guess this will help me.
I'm going to test it.
Meanwhile I want to ask:
Is this the correct location for an configuration file?
I know it is maybe not intended for "normal" use to tweak this file, but I think it is a configuration file after all and should be under /etc/ like all the others?
(This is why I didn't find it, I was just looking under /etc/ )
Well, probably due to other configuration included in this file, which users shouldn't rather touch. Alon, can you comment?
Am 19.03.2014 18:41, schrieb Martin Perina:
4) /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in - for ovirt-engine service (webadmin & userportal)
-- 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

----- Original Message -----
From: "Martin Perina" <mperina@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: users@ovirt.org, "Sven Kieske" <S.Kieske@mittwald.de> Sent: Thursday, March 20, 2014 10:12:31 AM Subject: Re: [Users] centralized Logging engine and hypervisor
----- Original Message -----
From: "Sven Kieske" <S.Kieske@mittwald.de> To: "Martin Perina" <mperina@redhat.com> Cc: users@ovirt.org Sent: Thursday, March 20, 2014 9:02:19 AM Subject: Re: [Users] centralized Logging engine and hypervisor
Hi and thanks for this reply, I guess this will help me.
I'm going to test it.
Meanwhile I want to ask:
Is this the correct location for an configuration file?
I know it is maybe not intended for "normal" use to tweak this file, but I think it is a configuration file after all and should be under /etc/ like all the others?
(This is why I didn't find it, I was just looking under /etc/ )
Well, probably due to other configuration included in this file, which users shouldn't rather touch.
Alon, can you comment?
Hi, The jboss service xml is sensitive monolithic block of data as any J2EE resource, to make it complex, the format is XML. We cannot put it in /etc as every upgrade requires to overwrite the file for product to be usable. In order to allow some level of customization we inject variable from /etc/ovirt-engine/engine.conf[.d/*.conf] into the content upon service start. As the logging part of this file, and the nature of the syntax is not fixed, I yet not found a decent solution[1]. What I really want to see, is that we can programmatic control what loggers we have and what level to enable and add these into our own configuration, detaching from jboss configuration, and even maybe can modify the log level dynamically at runtime as expected from this scale of application. I had short discussion about this with Mooli, I hope someone is capable of taking such task. Regards, Alon [1] https://bugzilla.redhat.com/show_bug.cgi?id=1017042
Am 19.03.2014 18:41, schrieb Martin Perina:
4) /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in - for ovirt-engine service (webadmin & userportal)
-- 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

Hi, and thanks for pointing this out. Maybe my BZ at: https://bugzilla.redhat.com/show_bug.cgi?id=1078738 could suffice as a first subtask in solving this issue by introducing a syslog handler module shipped by ovirt for jboss 7.1 and maybe additionally put another couple of log4j.xml into /etc/ovirt-engine/engine.conf[.d/*.conf] for the purpose of logging. the log4j.xmls are better to edit at least. Am 20.03.2014 15:42, schrieb Alon Bar-Lev:
Hi,
The jboss service xml is sensitive monolithic block of data as any J2EE resource, to make it complex, the format is XML.
We cannot put it in /etc as every upgrade requires to overwrite the file for product to be usable.
In order to allow some level of customization we inject variable from /etc/ovirt-engine/engine.conf[.d/*.conf] into the content upon service start. As the logging part of this file, and the nature of the syntax is not fixed, I yet not found a decent solution[1].
What I really want to see, is that we can programmatic control what loggers we have and what level to enable and add these into our own configuration, detaching from jboss configuration, and even maybe can modify the log level dynamically at runtime as expected from this scale of application.
I had short discussion about this with Mooli, I hope someone is capable of taking such task.
Regards, Alon
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1017042
-- 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

Ever since the “Spring Forward” on March 9th, my Windows 7 guests are behind an hour every time they reboot. The Fedora 20 guests are just fine. I can set the correct time, reboot, comes back up an hour behind. I’ve tried setting the time zone in the properties to both GMT and to the correct timezone, still the same, behind an hour on reboot. What am I doing wrong? And what affect does setting the time zone in the properties supposed to have on the guest? Thanks..

I have a similar issue, but my Windows clocks are always 4 hours ahead now, as if they were set to UTC. What time zone are you in? I have been under the impression that this is likely due to: https://bugzilla.redhat.com/show_bug.cgi?id=1062615 but haven't tried the fix myself yet (supposed to be fixed in 3.4). -Bob On Thu, Mar 20, 2014 at 10:49 AM, Blaster <blaster@556nato.com> wrote:
Ever since the "Spring Forward" on March 9th, my Windows 7 guests are behind an hour every time they reboot. The Fedora 20 guests are just fine.
I can set the correct time, reboot, comes back up an hour behind. I've tried setting the time zone in the properties to both GMT and to the correct timezone, still the same, behind an hour on reboot.
What am I doing wrong?
And what affect does setting the time zone in the properties supposed to have on the guest?
Thanks.. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Mar 20, 2014, at 16:15 , Bob Doolittle <bob@doolittle.us.com> wrote:
I have a similar issue, but my Windows clocks are always 4 hours ahead now, as if they were set to UTC. What time zone are you in?
I have been under the impression that this is likely due to: https://bugzilla.redhat.com/show_bug.cgi?id=1062615 but haven't tried the fix myself yet (supposed to be fixed in 3.4).
likely the guest's HW clock should be now set to the offset of the selected TZ. For default Linux installs this should be UTC (I think still you can't select anything else), for Windows this should be the desired time zone. Not sure how it handles DST but at least it should be consistently coming up with the same time:) Thanks, michal
-Bob
On Thu, Mar 20, 2014 at 10:49 AM, Blaster <blaster@556nato.com> wrote: Ever since the “Spring Forward” on March 9th, my Windows 7 guests are behind an hour every time they reboot. The Fedora 20 guests are just fine.
I can set the correct time, reboot, comes back up an hour behind. I’ve tried setting the time zone in the properties to both GMT and to the correct timezone, still the same, behind an hour on reboot.
What am I doing wrong?
And what affect does setting the time zone in the properties supposed to have on the guest?
Thanks.. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------090007000702000707010509 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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-applic... http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log...
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 -- Ernest Beinrohr, AXON PRO Ing <http://www.beinrohr.sk/ing.php>, RHCE <http://www.beinrohr.sk/rhce.php>, RHCVA <http://www.beinrohr.sk/rhce.php>, LPIC <http://www.beinrohr.sk/lpic.php>, VCA <http://www.beinrohr.sk/vca.php>, +421-2--6241-0360 <callto://+421-2--6241-0360>, +421-903--482-603 <callto://+421-903--482-603> icq:28153343, gtalk: oernii@axonpro.sk, jabber:oernii@jabber.org ------------------------------------------------------------------------ “For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.” Richard Feynman --------------090007000702000707010509 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">Dňa 19.03.2014 17:12, Sven Kieske wrote / napísal(a):<br> </div> <blockquote cite="mid:5329C1AB.1000909@mittwald.de" type="cite"> <pre wrap="">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? <a class="moz-txt-link-freetext" href="https://blog.trifork.com/2010/01/14/logging-to-the-syslog-from-a-java-application/">https://blog.trifork.com/2010/01/14/logging-to-the-syslog-from-a-java-application/</a> <a class="moz-txt-link-freetext" href="http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log-to-syslog">http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log-to-syslog</a> 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? </pre> </blockquote> <br> Don't forget to backup the file, it's not marked as a config, so a new update will replace it :)<br> <br> $ rpm -q --qf '[%{filenames}: %{fileflags}\n]' -f /etc/ovirt-engine/engine-config/log4j.xml | grep log4j.xml<br> /etc/ovirt-engine/engine-config/log4j.xml: 0<br> /etc/ovirt-engine/engine-manage-domains/log4j.xml: 0<br> /etc/ovirt-engine/notifier/log4j.xml: 1<br> <br> <br> <div class="moz-signature">-- <br> <div id="oernii_footer" style="color: gray;"> <span style="font-family: Lucida Console, Luxi Mono, Courier, monospace; font-size: 90%;"> Ernest Beinrohr, AXON PRO<br> <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/ing.php">Ing</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCE</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCVA</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/lpic.php">LPIC</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/vca.php">VCA</a>, <a style="text-decoration: none; color: gray;" href="callto://+421-2--6241-0360">+421-2--6241-0360</a>, <a style="text-decoration: none; color: gray;" href="callto://+421-903--482-603">+421-903--482-603</a><br> icq:28153343, gtalk: <a class="moz-txt-link-abbreviated" href="mailto:oernii@axonpro.sk">oernii@axonpro.sk</a>, <a class="moz-txt-link-abbreviated" href="mailto:jabber:oernii@jabber.org">jabber:oernii@jabber.org</a> <br> </span> <hr style="height: 1px; width: 95%"> <span style="font-size: 70%;"> “For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.” Richard Feynman </span> </div> </div> <img src="http://nojsstats.appspot.com/UA-44497096-1/email.beinrohr.sk" moz-do-not-send="true" border="0" height="1" width="1"> </body> </html> --------------090007000702000707010509--

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-applic...
http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log...
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

----- Original Message -----
From: "Sven Kieske" <S.Kieske@mittwald.de> To: "Ernest Beinrohr" <Ernest.Beinrohr@axonpro.sk>, "Users@ovirt.org List" <Users@ovirt.org> Sent: Thursday, March 20, 2014 10:14:49 AM Subject: Re: [Users] centralized Logging engine and hypervisor
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>
I didn't try it, but some info can be found in this thread: http://stackoverflow.com/questions/10400263/jboss-as-7-configure-logging-to-...
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-applic...
http://help.papertrailapp.com/discussions/questions/86-how-to-make-jboss-log...
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 _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Am 20.03.2014 11:04, schrieb Martin Perina:
I didn't try it, but some info can be found in this thread:
http://stackoverflow.com/questions/10400263/jboss-as-7-configure-logging-to-...
Thanks for the link, for documentation purposes, I'll post my findings here to, so if someone needs this in the future, feel free to use it: Here is a custom implemented syslog handler for jboss 7.1: http://randomtekkstuff.blogspot.de/2013/03/jboss-as-7-syslog-handler.html I will test this out, once I found the jboss module directory.. In the meantime: Would ovirt-devs consider it save to "sideload" my own jboss module? I know this will get painful to maintain once I want to upgrade so I'm already asking: Is there a chance as a first step to include a custom syslog handler jboss module into ovirt (for jboss < 7.2) ? Later this could get expanded to easily allow to use syslog.. -- 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

2014-03-20 18:26 GMT+08:00 Sven Kieske <S.Kieske@mittwald.de>:
Am 20.03.2014 11:04, schrieb Martin Perina:
I didn't try it, but some info can be found in this thread:
http://stackoverflow.com/questions/10400263/jboss-as-7-configure-logging-to-...
Thanks for the link, for documentation purposes, I'll post my findings here to, so if someone needs this in the future, feel free to use it:
Here is a custom implemented syslog handler for jboss 7.1:
http://randomtekkstuff.blogspot.de/2013/03/jboss-as-7-syslog-handler.html
I will test this out, once I found the jboss module directory..
I think the runtime directory is in /usr/share/ovirt-engine/modules, after ps aux |grep ovirt
In the meantime:
Would ovirt-devs consider it save to "sideload" my own jboss module?
I know this will get painful to maintain once I want to upgrade so I'm already asking:
Is there a chance as a first step to include a custom syslog handler jboss module into ovirt (for jboss < 7.2) ?
I think oVirt uses jboss-modules-maven-plugin to create a module, If you want to create one, the syslog handler in your case, you may create a subproject containing the java code and tweak some of the pom.xml adding the jboss-modules-maven-plugin config, as the other modules do.
Later this could get expanded to easily allow to use syslog..
-- 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 _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

First: Thanks for the fast answer! Second: I decided that this is a much too painful hack into ovirt regarding maintainability, thus I will let ovirt log into files like it does already and pipe those into syslog. But it would be cool if you could work towards integrating this feature into ovirt in the future, maybe for 3.5 or 4.0. So I created an RFE at: https://bugzilla.redhat.com/show_bug.cgi?id=1078738 I think many large data centers could use this feature as most people tend to have centralized logging already. Am 20.03.2014 12:14, schrieb plysan:
2014-03-20 18:26 GMT+08:00 Sven Kieske <S.Kieske@mittwald.de>:
Am 20.03.2014 11:04, schrieb Martin Perina:
I didn't try it, but some info can be found in this thread:
http://stackoverflow.com/questions/10400263/jboss-as-7-configure-logging-to-...
Thanks for the link, for documentation purposes, I'll post my findings here to, so if someone needs this in the future, feel free to use it:
Here is a custom implemented syslog handler for jboss 7.1:
http://randomtekkstuff.blogspot.de/2013/03/jboss-as-7-syslog-handler.html
I will test this out, once I found the jboss module directory..
I think the runtime directory is in /usr/share/ovirt-engine/modules, after ps aux |grep ovirt
In the meantime:
Would ovirt-devs consider it save to "sideload" my own jboss module?
I know this will get painful to maintain once I want to upgrade so I'm already asking:
Is there a chance as a first step to include a custom syslog handler jboss module into ovirt (for jboss < 7.2) ?
I think oVirt uses jboss-modules-maven-plugin to create a module, If you want to create one, the syslog handler in your case, you may create a subproject containing the java code and tweak some of the pom.xml adding the jboss-modules-maven-plugin config, as the other modules do.
Later this could get expanded to easily allow to use syslog..
-- 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

yeah, I'll try :) 2014-03-20 20:16 GMT+08:00 Sven Kieske <S.Kieske@mittwald.de>:
First: Thanks for the fast answer!
Second: I decided that this is a much too painful hack into ovirt regarding maintainability, thus I will let ovirt log into files like it does already and pipe those into syslog.
But it would be cool if you could work towards integrating this feature into ovirt in the future, maybe for 3.5 or 4.0.
So I created an RFE at:
https://bugzilla.redhat.com/show_bug.cgi?id=1078738
I think many large data centers could use this feature as most people tend to have centralized logging already.
Am 20.03.2014 12:14, schrieb plysan:
2014-03-20 18:26 GMT+08:00 Sven Kieske <S.Kieske@mittwald.de>:
Am 20.03.2014 11:04, schrieb Martin Perina:
I didn't try it, but some info can be found in this thread:
http://stackoverflow.com/questions/10400263/jboss-as-7-configure-logging-to-...
Thanks for the link, for documentation purposes, I'll post my findings here to, so if someone needs this in the future, feel free to use it:
Here is a custom implemented syslog handler for jboss 7.1:
http://randomtekkstuff.blogspot.de/2013/03/jboss-as-7-syslog-handler.html
I will test this out, once I found the jboss module directory..
I think the runtime directory is in /usr/share/ovirt-engine/modules, after ps aux |grep ovirt
In the meantime:
Would ovirt-devs consider it save to "sideload" my own jboss module?
I know this will get painful to maintain once I want to upgrade so I'm already asking:
Is there a chance as a first step to include a custom syslog handler jboss module into ovirt (for jboss < 7.2) ?
I think oVirt uses jboss-modules-maven-plugin to create a module, If you want to create one, the syslog handler in your case, you may create a subproject containing the java code and tweak some of the pom.xml adding the jboss-modules-maven-plugin config, as the other modules do.
Later this could get expanded to easily allow to use syslog..
-- 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

On Thu, 20 Mar 2014, Sven Kieske wrote:
But it would be cool if you could work towards integrating this feature into ovirt in the future, maybe for 3.5 or 4.0.
So I created an RFE at:
https://bugzilla.redhat.com/show_bug.cgi?id=1078738
I think many large data centers could use this feature as most people tend to have centralized logging already.
we certainly do ... but this is a shifting space with syslog, rsyslog, and (on the horizon) systemd wanting to handle event generation. On the receiving end, we have a checklist for getting rsyslog set up to 'listen correctly' Also there are issues on the axis: ipv4 only, mixed, and ipv6 , and then: with and without DNS (A, AAAA, CNAME, and PTR record completeness matters in some configuration setups)
Later this could get expanded to easily allow to use syslog..
I think I have the '>' attribution correct Probably term 'syslog' is being used generically here. Concur that this would help a lot -- Russ herrold

Am 20.03.2014 16:07, schrieb R P Herrold:
we certainly do ... but this is a shifting space with syslog, rsyslog, and (on the horizon) systemd wanting to handle event generation. On the receiving end, we have a checklist for getting rsyslog set up to 'listen correctly' Also there are issues on the axis: ipv4 only, mixed, and ipv6 , and then: with and without DNS (A, AAAA, CNAME, and PTR record completeness matters in some configuration setups)
Later this could get expanded to easily allow to use syslog..
I think I have the '>' attribution correct
Probably term 'syslog' is being used generically here. Concur that this would help a lot
Well, to be more precise, atm I'm using syslog-ng and I guess I'll have to stick with it. -- 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

I filed an RFE at: https://bugzilla.redhat.com/show_bug.cgi?id=1078738 Honestly I think this is just unbearable, and I don't understand why it is not already easily configurable. However, I know this will take some time. So in the meantime any way to hack ovirt to enable syslog would be a great help. Thanks in advance. -- 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
participants (9)
-
Alon Bar-Lev
-
Blaster
-
Bob Doolittle
-
Ernest Beinrohr
-
Martin Perina
-
Michal Skrivanek
-
plysan
-
R P Herrold
-
Sven Kieske