Thanks Daniel. I'm already using "syslog-ng-ctl stats" with different stats levels. I'm just confused with "center()": *% sudo syslog-ng-ctl stats | grep center * *center;;received;a;processed;0* *center;;queued;a;processed;0* * * Also maybe balabit guys are able to give us some information on global stats: *% sudo syslog-ng-ctl stats | grep global * *global;sdata_updates;;a;processed;0* *global;payload_reallocs;;a;processed;760* *global;msg_clones;;a;processed;0* On Thu, Dec 27, 2012 at 6:07 PM, Daniel Neubacher <daniel.neubacher@xing.com
wrote:
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@lists.balabit.hu [mailto: syslog-ng-bounces@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?****
** **
From docs:****
The *center(received)* entry shows the total number of messages received from every configured sources.
** **
But in my stats center() shows zero almost for every host. I see zero in some other examples in docs too.****
** **
-- Best regards, Koldaev Anton ****
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-- Best regards, Koldaev Anton