26 Aug
2011
26 Aug
'11
10:12
On Fri, Aug 26, 2011 at 11:48:14AM +0200, Peter Czanik wrote: > Hello, > > On 08/25/2011 10:34 AM, Peter Czanik wrote: > > On 08/25/2011 09:45 AM, Peter Czanik wrote: > >> And here are my logs. Lines, where the message starts with 'bla' are > >> sent with logger in the following form: logger bla `date` When using > >> tail -f on logs, it seemed to me, that logs are received only when a > >> kernel message (like the one from firewall on ssh login) arrives. It > >> only seems to be a problem with systemd. I'll check it with Fedora > >> alpha, as that also has systemd and syslog-ng 3.2.4. Or just wait a few > >> days, as syslog-ng 3.3 should arrive to factory in any minute... > > Just tested, rsyslog seems to work correctly with systemd. And our git > > tree ( http://git.balabit.hu/?p=bazsi/syslog-ng-3.2.git;a=summary ) has > > some systemd related patches, which were committed after the syslog-ng > > 3.2.4 release. As syslog-ng 3.3 sources are already in factory and have > > these patches, I'll come back to this question once the 3.3 binary is > > available. > OK, it arrived to factory this morning, so I could test it. Logging with > syslog-ng works now as epxected. I still ran into a couple of systemd > related issues, which I still need to test a bit more before reporting > to bugzilla: > - changing from rsyslog to syslog-ng or back seems to work only after a > reboot systemctl stop syslog.service systemctl --system daemon-reload systemctl start syslog.service > - when editing syslog-ng.conf and making a mistake, the error message is > not printed on screen on "rcsyslog restart" making it difficult to find > the problem or even to find that there is a problem... This is a problem of how to use error logs in systemd, you may try DefaultStandardOutput=syslog+console DefaultStandardError=syslog+console in /etc/systemd/system.conf (it's not a bug but a feature) > Neither of these problems appear with good old-fashioned sysvinit... that is an other story :/ -- Dr. Werner Fink -- Software Engineer Consultant SuSE LINUX Products GmbH, Maxfeldstrasse 5, Nuernberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nuernberg) phone: +49-911-740-53-0, fax: +49-911-3206727, www.opensuse.org ------------------------------------------------------------------ "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org