[syslog-ng] getting syslog stats without syslog-ng-ctl?
Anton Koldaev
koldaevav at gmail.com
Tue Jan 8 11:53:16 CET 2013
Daniel: can you share what are you using stats for? Maybe some interesting
aggregations?
On Tue, Jan 8, 2013 at 2:20 PM, Daniel Neubacher
<daniel.neubacher at xing.com>wrote:
> Thanks for the answer. Thats what i needed to know. And now I now that
> the nc of the server is too old, no -U option :P
>
> ------------------------------
> *Von:* syslog-ng-bounces at lists.balabit.hu [
> syslog-ng-bounces at lists.balabit.hu]" im Auftrag von "Balint Kovacs [
> balint.kovacs at balabit.com]
> *Gesendet:* Dienstag, 8. Januar 2013 11:09
> *An:* syslog-ng at lists.balabit.hu
> *Betreff:* Re: [syslog-ng] getting syslog stats without syslog-ng-ctl?
>
> Hi,
>
> it is quite easy, all that syslog-ng-ctl does is that it writes "STATS\n"
> into the syslog-ng control socket and displays the result. I'm not familiar
> with ruby, but I assume that basic Unix domain socket read/write is not
> that hard to do with it. With the use of netcat you can check that
>
> root at lyra:~# nc -U /var/lib/syslog-ng/syslog-ng.ctl
> STATS
> SourceName;SourceId;SourceInstance;State;Type;Number
> center;;received;a;processed;0
> destination;d_messages;;a;processed;751
> src.internal;s_src#2;;a;processed;9
> src.internal;s_src#2;;a;stamp;1357639178
> destination;d_console_all;;a;processed;553
> center;;queued;a;processed;0
> destination;d_console;;a;processed;56
> destination;d_xconsole;;a;processed;553
> global;payload_reallocs;;a;processed;424
> global;sdata_updates;;a;processed;0
> global;msg_clones;;a;processed;0
> source;s_src;;a;processed;7666
> .
> ^C
>
> Balint
>
> Hello there,
> we are plotting and monitoring lot of data and for this I'm using a little
> bash script which does sum up the output of syslog-ng-ctl. But this is kind
> of slow with 17k lines to parse :P
> Is there a way to get the stats directly without syslog-ng-ctl? My goal is
> to write a ruby script which only parse the stats i'm needing.
>
> I'm no developer so please answer admin friendly :)
>
>
> ______________________________________________________________________________
> 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
>
>
>
>
> ______________________________________________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130108/d12958c4/attachment.htm
More information about the syslog-ng
mailing list