<p>Hello everyone,<br />
<br />
I have a problem with getting statistics from syslog-ng 3.0.5 (under
Debian 5.0.4) using it's socket file.<br />
<br />
In our configuration logs received by syslog-ng are being forwarded to
python scripts (which in turn send logs to database). Since sometimes
these scripts cannot handle the load, we want to monitor syslog-ng
statistics for dropped logs. Currently, I run a script from cron which
get statistics from syslog-ng socket file like this "echo STATS |
socat - /var/lib/syslog-ng/syslog-ng.ctl" and then parse output.
Most of time it works great, but during peak times when number of logs
get higher ( ~2000 logs/sec instead of ~1500 logs/sec), this cron script
cannot get any output from statistics. Also this message appears in
/var/log/syslog:<br />
syslog-ng[21677]: Error writing control channel; error='Broken pipe
(32)'<br />
<br />
Is it possible to tune syslog-ng statistics somehow, or maybe there is a
better way to get statistics?<br />
<br />
Thanks,<br />
Aleksei<br />
</p><br>
<br>
<br>
----------------------------<br>
Võimalik, et oled TASUTA 1600€ soojamaareisist vaid CV sisestamise kaugusel!<br>
<a href="http://ads.hot.ee/reklaam/click?rel=4d2d893665b9a" title="http://www.cv.ee" >Vaata lähemalt SIIT.</a><br>