14 Jul
2011
14 Jul
'11
8:27 a.m.
On Mon, 2011-06-27 at 10:46 +0200, Balint Kovacs wrote:
Hi Josu,
I think the easiest way with a recent version of syslog-ng is something along the lines of:
syslog-ng-ctl stats | grep "src.host.*processed" | cut -d ";" -f 3
alternatively, you can enable MARK messages and grep for those, but the statistical counters should be easier to use. you might need to set stats_level() to 2 to have those though (which has a slight performance impact). -- Bazsi