Welcome! Log In Create A New Profile

Advanced

Status of Nginx centralised logging

Jonathan Matthews
June 06, 2012 06:40PM
Hi all -

As many of us will have discovered over the course of our careers,
centralised/non-local logging is an important part of any non-trivial
infrastructure.

I'm aware of different patches that add syslogging capabilities to
different Nginx versions, but I've yet to see an official description
of how we should achieve non-local logging. Preferably syslog,
personally speaking, but anything scalable, supportable, debug-able
and sane would, I feel, be acceptable to the wider community.

I'm aware of at least the following options, but I feel they're all
lacking to some degree:

* log to local disk and syslog/logstash/rsync them off: undesirable
due to the management overhead of the additional logging process/logic
+ the wasted disk I/O when creating the per-request logs

* use post_action to hit a logging endpoint after each request: would
add overhead to both configuration and network traffic; post_action
has been described as "a bit of a hack", IIRC

* use syslog patches: not "official", hence troublesome to debug
on-list; rightly or wrongly, the usual response of "please replicate
problem without 3rd party patches" would cause problems when debugging
production systems

* use another 3rd-party logging protocol, e.g. statsd, redis: as
similarly unsupportable as syslog patches

I wonder if someone could officially comment on the potential for
resolving this gap in Nginx's feature set? Or perhaps I'm missing
something ... :-)

Many thanks, all
Jonathan
--
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

Status of Nginx centralised logging

Jonathan MatthewsJune 06, 2012 06:40PM

Re: Status of Nginx centralised logging

Matthieu TourneJune 06, 2012 07:04PM

Re: Status of Nginx centralised logging

Jonathan MatthewsJune 06, 2012 07:42PM

Re: Status of Nginx centralised logging

Mark MoseleyJune 06, 2012 08:04PM

Re: Status of Nginx centralised logging

Peter P.June 07, 2012 01:34PM

Re: Status of Nginx centralised logging

Maxim DouninJune 07, 2012 06:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
Record Number of Users: 5 on May 22, 2013
Record Number of Guests: 150 on May 22, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready