[syslog-ng] Statistics summary

Daniel Neubacher daniel.neubacher at xing.com
Thu Dec 27 15:07:31 CET 2012


I guess u need "syslog-ng-ctl stats".  But u need to configure "stats_level(2);" in your options to get this running nicely.
And if you want to get logs per second I've attached my little bash script:

#!/bin/bash



while true

do

            for i in $(syslog-ng-ctl stats | grep src.tcp | grep proc | cut -d ";" -f6)

            do

              let tc1+=$i

            done

            let lps=tc1-tc2

            test -z $tc2 || echo $lps

            tc2=$tc1

            tc1=0

            sleep 1

done

Von: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] Im Auftrag von Anton Koldaev
Gesendet: Donnerstag, 27. Dezember 2012 10:18
An: Syslog-ng users' and developers' mailing list
Betreff: [syslog-ng] Statistics summary

Is there a nice way to get total numbers of processed/stored/dropped messages in syslog-ng v3.3?



More information about the syslog-ng mailing list