pipe logfiles to perl script

Mirosław Jaworski mjaw at ikp.pl
Mon Aug 31 17:45:54 MSD 2009

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.

Mirosław "Psyborg" Jaworski
GCS/IT d- s+:+ a C++$ UBI++++$ P+++$ L- E--- W++(+++)$ N++ o+ K- w-- O-
M- V- PS+ PE++ Y+ PGP t 5? X+ R++ !tv b++(+++) DI++ D+ G e* h++ r+++ y?
            "Maths and alcohol don't mix. Don't drink and derive."

More information about the nginx mailing list