Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does nginx buffer its error logs?

Tags:

nginx

web

We're looking to watch nginx error logs for modifications but having some difficultly accounting for edge cases such as file truncations, etc.

It would be helpful to know if nginx writes its error log files on the fly or if it buffers writes to error logs. Buffering wouldnt make a lot of sense for error logs but could still be the case to ensure high performance in nginx.

We know that nginx buffers access log writes but cant currently find evidence that it does the same for error logs.

like image 691
Paul Carey Avatar asked Sep 04 '12 14:09

Paul Carey


1 Answers

No, error log writes aren't buffered.

like image 78
Maxim Dounin Avatar answered Oct 05 '22 17:10

Maxim Dounin