Log Files
All connections to the web server and requests for files that were not found on the server are registered in log files. The following log files are manageable by Plesk:
- access_log. This log records all HTTP requests processed by the web server.
- access_ssl_log. This log records all HTTPS requests processed by the web server.
- error_log. This log contains diagnostic information. It also records any errors that the web server encounters in processing requests.
- proxy_access_log. This log records all HTTP requests processed by the proxy web server.
- proxy_access_ssl_log. This log records all HTTPS requests processed by the proxy web server.
- proxy_error_log. This log contains diagnostic information. It also records any errors that the proxy web server encounters in processing requests.
Log files are analyzed by the statistics programs running on the server, which then present graphical reports on demand. You can download these log files to your computer for processing by third-party statistics programs, or view their contents for web server debugging purposes.
To prevent these log files from growing too large, you should enable automatic cleanup and recycling of log files:
- If you have access to several subscriptions, select the required subscription in the Subscription box at the top of the screen. Or, to view sites of all your subscriptions, select All subscriptions.
- Go to the Websites & Domains tab > Logs > Log Rotation.
- Check the Log rotation checkbox.
- Specify when to recycle log files and how many copies of each log file to store on the server. Also specify whether they should be compressed and sent to an email address after processing.
- Click OK.
To view the contents of a log file or download it to your computer:
- If you have access to several subscriptions, select the required subscription in the Subscription box at the top of the screen. Or, to view sites of all your subscriptions, select All subscriptions.
- Go to the Websites & Domains tab > Logs. A list of log files opens.
- Do any of the following:
- To view all entries in a log file, click the log file name. If you want to view only a few last lines from the log file, type the number of lines into the input box under the Settings group, and then click the log file name.
- To download a file to your computer, click the corresponding icon
. - To remove a processed log file from the server, select the corresponding checkbox and click Remove. Confirm removal and click OK.
To download log files to your computer via FTP:
- Connect to the Plesk server via FTP.
- Go to the
/var/www/vhosts/<domain_name>/logs directory and copy the log files to you computer.