Welcome! Log In Create A New Profile

Advanced

Re: loggint through syslog

Ryan Malayter
December 24, 2009 01:04AM
On Sunday, December 20, 2009, Vinay Y s <lists@ruby-forum.com> wrote:
> try this:
> tail -f access.log | logger -p local5.err -t nginx
>
> you can ensure this is always running by using something like
> daemontools.
>
> Surely this will have worser performance than if it were implemented
> natively within nginx.

Interesting... Wouldn't that construct result in one massive syslog
entry containing many lines of the nginx log (possibly overflowing a
syslog max limit and truncating)? The default interval for tail -f
seems to be 1s. That could be solved by an intermediate process I
suppose.

Unfortunately, I see no mention of TLS support in the man pages for
logger, but I think you are on to something... good suggestion. The
efficency of tail -f is the deciding factor I think.

Coordinating with log rotations will also be somewhat tricky, but
probably do-able by watching the descriptor instead of the name and
re-starting the process at log rotation.

I still think native syslog in nginx is more desirable, of course.
Complexity is the enemy of both stability and security.

--
RPM

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

loggint through syslog

Gabri Mate December 16, 2009 04:58PM

Re: loggint through syslog

merlin corey December 17, 2009 05:30PM

Re: loggint through syslog

Ryan Malayter December 17, 2009 07:46PM

Re: loggint through syslog

merlin corey December 17, 2009 08:04PM

Re: loggint through syslog

Ryan Malayter December 18, 2009 12:38AM

Re: loggint through syslog

merlin corey December 18, 2009 08:18PM

Re: loggint through syslog

Ryan Malayter December 19, 2009 10:08PM

Re: loggint through syslog

merlin corey December 21, 2009 08:24PM

Re: loggint through syslog

Vinay Y s December 20, 2009 11:54AM

Re: loggint through syslog

Peter Leonov December 20, 2009 05:58PM

Re: loggint through syslog

mike December 20, 2009 06:02PM

Re: loggint through syslog

Kingsley Foreman December 20, 2009 06:08PM

Re: loggint through syslog

mike December 20, 2009 06:14PM

Re: loggint through syslog

Ryan Malayter December 24, 2009 01:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready