loggint through syslog

Peter Leonov gojpeg at gmail.com
Mon Dec 21 01:53:08 MSK 2009


On 20.12.2009, at 19:50, Vinay Y s <lists at ruby-forum.com> wrote:

> Gabri Mate wrote:
>> Hey There!
>>
>> Is there any chance to be able to log access through syslog? It  
>> would be
> I doubt if there is built-in support for logging to syslog directly.  
> But
> you can achieve something almost as good by simply tailing the logs to
> the syslog logger command.
>
> 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.

The recent descussion in the Russian list tells the opposite.  
Performance may become even better due to packet nature of the  
network: less packets on heavu loadef system.

Do not be afraid to use such a configuration :)

Best regards,
Peter.



More information about the nginx mailing list