Hello list, I want to know if there is a option to know which log-clients are sending data to syslog-ng server. Is it possible to get a list of clients? Thanks and best regards.
Hi Josu, I think the easiest way with a recent version of syslog-ng is something along the lines of: syslog-ng-ctl stats | grep "src.host.*processed" | cut -d ";" -f 3 Best Regards, Balint On 06/27/2011 09:48 AM, Josu Lazkano wrote:
Hello list, I want to know if there is a option to know which log-clients are sending data to syslog-ng server.
Is it possible to get a list of clients?
Thanks and best regards.
______________________________________________________________________________ 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
Thanks for your reply, I don't have this command, I have the 2.0.9-4.2 version on a Ubuntu server. Next week I will start to change all my configuration, which version do you recommend? I need a stable Ubuntu repository. Thanks and best regards. De: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] En nombre de Balint Kovacs Enviado el: lunes, 27 de junio de 2011 10:47 Para: Syslog-ng users' and developers' mailing list Asunto: Re: [syslog-ng] check clients Hi Josu, I think the easiest way with a recent version of syslog-ng is something along the lines of: syslog-ng-ctl stats | grep "src.host.*processed" | cut -d ";" -f 3 Best Regards, Balint On 06/27/2011 09:48 AM, Josu Lazkano wrote: Hello list, I want to know if there is a option to know which log-clients are sending data to syslog-ng server. Is it possible to get a list of clients? Thanks and best regards. ______________________________________________________________________________ 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
Josu Lazkano <josu.lazkano@barcelonamedia.org> writes:
Thanks for your reply, I don't have this command, I have the 2.0.9-4.2 version on a Ubuntu server.
Next week I will start to change all my configuration, which version do you recommend? I need a stable Ubuntu repository.
Later Ubuntu releases have updated syslog-ng packages, and while that may not work on your Ubuntu version, recompiling the package from source should work. syslog-ng 3.2 would be the recommended version. packages.ubuntu.com is timing out for me, so here's a link to the Debian sources (as far as I recall, it's the same as in Ubuntu): http://packages.debian.org/source/sid/syslog-ng -- |8]
On Mon, 2011-06-27 at 10:46 +0200, Balint Kovacs wrote:
Hi Josu,
I think the easiest way with a recent version of syslog-ng is something along the lines of:
syslog-ng-ctl stats | grep "src.host.*processed" | cut -d ";" -f 3
alternatively, you can enable MARK messages and grep for those, but the statistical counters should be easier to use. you might need to set stats_level() to 2 to have those though (which has a slight performance impact). -- Bazsi
participants (4)
-
Balazs Scheidler
-
Balint Kovacs
-
Gergely Nagy
-
Josu Lazkano