Logs are a very useful aspect of web server administration and web development as they provide useful debugging information and allow you to analyze other aspects of your website (and server).
First you need to set up file access in order to view or download your server logs.
The log files are located in
/home/woouser/logs/nginx/ and there will be two main logs:
The error log file contain any WordPress errors or warnings that might have occurred on your site or server.
The access log is a list of all requests that people or bots have requested from your website, it also contain information about how long it to the server to generate each request.
If your SFTP client supports it, you can open the log files directly with your client, or you can download the raw log files and open them with a text editor.
An even better way to view the log files is to connect to your server with SSH, then use the command:
tail -f path/to/logfile.log this command will show you the log entries in real time.
tail -f -n 100 path/to/default.access.log this will show the last 100 entries in real time of your access log.
If you have a staging or add-on website, the logs for those sites will be in the
/home/woouser/logs/nginx/ folder as well. The name for those will be:
Note: Gzip (.gz) backups are automatically created for older log archives.