Empty error and access log

Francis Daly francis at daoine.org
Thu Sep 26 11:09:16 UTC 2019


On Thu, Sep 26, 2019 at 06:22:41AM -0400, krishna wrote:

Hi there,

> I have configured access_log and error_log at https block level and
> sometimes(like after log rotation), could see the logs are with 0 bytes
> (which means, nothing logged though it serves the requests and application
> is accessible). 

What, specifically, do you mean by "log rotation"?

If it involves renaming or deleting a file without telling nginx that
the filehandle should be closed and reopened, then it is possible that
nginx is still happily logging to the old filehandle.

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list