Empty error and access log

krishna nginx-forum at forum.nginx.org
Thu Sep 26 10:22:41 UTC 2019


Dear Team,

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). 

Any help would be appreciated to figure out the issue and why its occurring
.

Config:

#Log file format
    log_format main '$remote_addr - $remote_user [$time_local] '
                    '"$request" $status $body_bytes_sent '
                    '"$http_referer" "$http_user_agent" "$gzip_ratio" ';

    access_log /var/logs/access.log main;
    error_log  /var/logs/error.log error;

Log Files:    

-rwxr-xr-x. 1 root root 0 Sep 25 03:13 access.log
-rwxr-xr-x. 1 root root 0 Sep 26 03:34 error.log

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285708,285708#msg-285708



More information about the nginx mailing list