[syslog-ng] check clients

Balazs Scheidler bazsi at balabit.hu
Thu Jul 14 09:27:01 CEST 2011


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




More information about the syslog-ng mailing list