Hi list, Read all the docs (time and time again) and Googled, but still have no answer. Red Hat RHAS3, syslog-ng 1.6.8 (self-compiled on system, installed as an rpm) on this test server. I've come to appreciate syslog-ng and would not willingly go back to the original. But. My OpenLDAP 2.3.7 slapd log needs a "do not synchronize" possibility, similar to the syslog.conf - possibility, I *think* I've solved this by buffering output with sync: destination d_slapd { file("/var/log/slapd" sync(10)); }; Is this it, or could I do something better? Thanks! --Tonni -- mail: tonye@billy.demon.nl http://www.billy.demon.nl
On Sat, Sep 03, 2005 at 09:12:04PM +0200, Tony Earnshaw wrote:
But. My OpenLDAP 2.3.7 slapd log needs a "do not synchronize" possibility, similar to the syslog.conf - possibility, I *think* I've solved this by buffering output with sync:
destination d_slapd { file("/var/log/slapd" sync(10)); };
That's it, more or less. I forget offhand how much Linux syslogd (well GNU syslogd is probably what it really is but everyone just calls it "Linux syslog") will buffer but what you've done is also buffering before writing to disk. I'd not make it so high though - maybe five at the most. Just my opinion, though. Hope this helps. -- Nate "REAL PROGRAMMERS don't comment their code. If it was hard to write, it should be hard to understand." - Unknown
man, 05.09.2005 kl. 09.06 skrev Nate Campi:
But. My OpenLDAP 2.3.7 slapd log needs a "do not synchronize" possibility, similar to the syslog.conf - possibility, I *think* I've solved this by buffering output with sync:
destination d_slapd { file("/var/log/slapd" sync(10)); };
That's it, more or less. I forget offhand how much Linux syslogd (well GNU syslogd is probably what it really is but everyone just calls it "Linux syslog") will buffer but what you've done is also buffering before writing to disk. I'd not make it so high though - maybe five at the most. Just my opinion, though.
Hope this helps.
Thanks, Nate - it helps a lot :) slapd was bombing out the whole time (every so often) and doesn't any more - after a few days. Left it at ten and tail-fing doesn't leave a lot to be desired. Best, --Tonni -- mail: tonye@billy.demon.nl http://www.billy.demon.nl
participants (2)
-
Nate Campi
-
Tony Earnshaw