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?
thanks
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?
thanks
On Mon, 2009-08-31 at 15:07 +0200, Juergen G. 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.
On Mon, Aug 31, 2009 at 03:07:52PM +0200, Juergen G. 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?
No, nginx does not support pipe logging.
The following contruction is almost the same in terms of CPU waste:
tail -F /path/to/access_log | /path/to/perl/script
On Mon, Aug 31, 2009 at 03:45:54PM +0200, Miros??aw Jaworski wrote:
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs