<div dir="ltr">Thanks Daniel. I&#39;m already using &quot;syslog-ng-ctl stats&quot; with different stats levels. I&#39;m just confused with &quot;center()&quot;:<div><div><i>% sudo syslog-ng-ctl stats | grep center                                                                                                                            </i></div>

<div><i>center;;received;a;processed;0</i></div><div><i>center;;queued;a;processed;0</i></div></div><div><i><br></i></div><div style>Also maybe balabit guys are able to give us some information on global stats:</div><div style>

<div><i>% sudo syslog-ng-ctl stats | grep global </i></div><div><i>global;sdata_updates;;a;processed;0</i></div><div><i>global;payload_reallocs;;a;processed;760</i></div><div><i>global;msg_clones;;a;processed;0</i></div>
</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 6:07 PM, Daniel Neubacher <span dir="ltr">&lt;<a href="mailto:daniel.neubacher@xing.com" target="_blank">daniel.neubacher@xing.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal" style="line-height:200%"><span lang="EN-US" style="font-size:11.0pt;line-height:200%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I guess u need „syslog-ng-ctl stats”.  But u need to configure “stats_level(2);” in your options to get
 this running nicely.<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:200%"><span lang="EN-US" style="font-size:11.0pt;line-height:200%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">And if you want to get logs per second I’ve attached my little bash script:<u></u><u></u></span></p>


<p><span lang="EN-US">#!/bin/bash<u></u><u></u></span></p>
<p><span lang="EN-US"><u></u> <u></u></span></p>
<p><span lang="EN-US">while true<u></u><u></u></span></p>
<p><span lang="EN-US">do <u></u><u></u></span></p>
<p><span lang="EN-US">            for i in $(syslog-ng-ctl stats | grep src.tcp | grep proc | cut -d &quot;;&quot; -f6)
<u></u><u></u></span></p>
<p><span lang="EN-US">            do <u></u><u></u></span></p>
<p><span lang="EN-US">              let tc1+=$i <u></u><u></u></span></p>
<p><span lang="EN-US">            done <u></u><u></u></span></p>
<p><span lang="EN-US">            let lps=tc1-tc2<u></u><u></u></span></p>
<p><span lang="EN-US">            test -z $tc2 || echo $lps<u></u><u></u></span></p>
<p><span lang="EN-US">            tc2=$tc1<u></u><u></u></span></p>
<p><span lang="EN-US">            tc1=0<u></u><u></u></span></p>
<p><span lang="EN-US">            sleep 1<u></u><u></u></span></p>
<p><span lang="EN-US">done<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a> [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a>]
<b>Im Auftrag von </b>Anton Koldaev<br>
<b>Gesendet:</b> Donnerstag, 27. Dezember 2012 10:18<br>
<b>An:</b> Syslog-ng users&#39; and developers&#39; mailing list<br>
<b>Betreff:</b> [syslog-ng] Statistics summary<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Is there a nice way to get total numbers of processed/stored/dropped messages in syslog-ng v3.3?<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">From docs:</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&gt; The </span><code><i><span style="font-size:10.0pt">center(received)</span></i></code><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> entry
 shows the total number of messages received from every configured sources.</span><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">But in my stats center() shows zero almost for every host. I see zero in some other examples in docs too.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <br>
Best regards,<br>
Koldaev Anton <u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>

<br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br>Koldaev Anton
</div>