No subject


Mon Dec 3 12:26:40 CET 2012


> The center(received) entry shows the total number of messages received fr=
om every configured sources.

But in my stats center() shows zero almost for every host. I see zero in so=
me other examples in docs too.

--
Best regards,
Koldaev Anton

--_000_76DDF0AA52B7BB479A6B9B8B48363A60682131E9xingexchsvr02xi_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
code
	{mso-style-priority:99;
	font-family:"Courier New";}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
	{mso-style-priority:1;
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DE" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal" style=3D"line-height:200%"><span lang=3D"EN-US" styl=
e=3D"font-size:11.0pt;line-height:200%;font-family:&quot;Calibri&quot;,&quo=
t;sans-serif&quot;;color:#1F497D">I guess u need &#8222;syslog-ng-ctl stats=
&#8221;.&nbsp; But u need to configure &#8220;stats_level(2);&#8221; in you=
r options to get
 this running nicely.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"line-height:200%"><span lang=3D"EN-US" styl=
e=3D"font-size:11.0pt;line-height:200%;font-family:&quot;Calibri&quot;,&quo=
t;sans-serif&quot;;color:#1F497D">And if you want to get logs per second I&=
#8217;ve attached my little bash script:<o:p></o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">#!/bin/bash<o:p></o:p></span=
></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">while true<o:p></o:p></span>=
</p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">do <o:p></o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i in $(syslog-ng-ctl stats | gre=
p src.tcp | grep proc | cut -d &quot;;&quot; -f6)
<o:p></o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do <o:p></o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;let tc1&#43;=3D$i <o:p><=
/o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done <o:p></o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; let lps=3Dtc1-tc2<o:p></o:p></span><=
/p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test -z $tc2 || echo $lps<o:p></o:p>=
</span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tc2=3D$tc1<o:p></o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tc1=3D0<o:p></o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sleep 1<o:p></o:p></span></p>
<p class=3D"MsoNoSpacing"><span lang=3D"EN-US">done<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp=
;</o:p></span></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> syslog-ng=
-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu]
<b>Im Auftrag von </b>Anton Koldaev<br>
<b>Gesendet:</b> Donnerstag, 27. Dezember 2012 10:18<br>
<b>An:</b> Syslog-ng users' and developers' mailing list<br>
<b>Betreff:</b> [syslog-ng] Statistics summary<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal">Is there a nice way to get total numbers of processe=
d/stored/dropped messages in syslog-ng v3.3?<o:p></o:p></p>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,&quot;sans-serif&quot;;color:black">From docs:</span><o:p></o:p></=
p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,&quot;sans-serif&quot;;color:black">&gt; The&nbsp;</span><code><i>=
<span style=3D"font-size:10.0pt;color:black">center(received)</span></i></c=
ode><span style=3D"font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans=
-serif&quot;;color:black">&nbsp;entry
 shows the total number of messages received from every configured sources.=
</span><br clear=3D"all">
<o:p></o:p></p>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">But in my stats center() shows zero almost for every=
 host. I see zero in some other examples in docs too.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class=3D"MsoNormal">-- <br>
Best regards,<br>
Koldaev Anton <o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>

--_000_76DDF0AA52B7BB479A6B9B8B48363A60682131E9xingexchsvr02xi_--


More information about the syslog-ng mailing list