Welcome! Log In Create A New Profile

Advanced

Re: pipe logfiles to perl script

August 31, 2009 10:29AM
On Mon, Aug 31, 2009 at 03:45:54PM +0200, Miros??aw Jaworski wrote:

> On Mon, 2009-08-31 at 15:07 +0200, Juergen Gotteswinter wrote:
> > Hello Folks,
> >
> > i am badly looking for a solution to get nginx pipe his logfiles ...
> > something like cronolog or in my case a special perl script. are there
> > anyy solutions or patches around?
>
> You can have multiple logs with nginx. Since logs are useful you may
> want to keep present configuration intact. Add another nginx logfile
> dedicated for your script usage and log there exactly what you script
> wants. Make it a a FIFO ( man mknod ) and read it from your script.

Currently nginx opens log files in blocking mode, therefore if script
will not be able to exhaust data from FIFO for some reason, then nginx
will blocks on log writing and will not be able to process requests.
If I will change this to nonblocking mode, then some data may be lost
on the smae terms.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

pipe logfiles to perl script

Juergen Gotteswinter August 31, 2009 09:07AM

Re: pipe logfiles to perl script

Mirosław Jaworski August 31, 2009 09:45AM

Re: pipe logfiles to perl script

Igor Sysoev August 31, 2009 10:29AM

Re: pipe logfiles to perl script

Igor Sysoev August 31, 2009 09:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
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