By default, the access log is located at /var/log/nginx/access. log , and the information is written to the log in the predefined combined format. You can override the default settings and change the format of logged messages by editing the NGINX configuration file ( /etc/nginx/nginx.
How do I enable nginx logs?
Error log should be enabled by default. If it’s not, you can enable it manually in the Nginx configuration file using the error_log directive. error_log /var/log/nginx/error.
What is the format of Nginx logs?
The default log format in nginx is called “combined”.